Commit b4a96a9
committed
Fail fast when no AWS region is resolved and use it for S3 object URLs
The switch to resolving AWS credentials/region from the SDK default chain
left the region passed to the S3 service empty. Virtual-host style object
URLs embed the region in the hostname, so stored archive URLs came out as
https://<bucket>.s3..amazonaws.com/... which doesn't resolve. Resolve the
region from the SDK chain, error if it's empty, and pass it to the S3
service.1 parent d0a94f7 commit b4a96a9
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
34 | 48 | | |
35 | 49 | | |
36 | 50 | | |
| |||
0 commit comments