We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1ef4525 + a885078 commit 93f7910Copy full SHA for 93f7910
1 file changed
rootfs/bin/create-bucket
@@ -25,7 +25,11 @@ if os.getenv('REGISTRY_STORAGE') == "s3" and os.getenv('REGISTRY_STORAGE_S3_BACK
25
conn = boto.s3.connect_to_region(region)
26
27
if not bucket_exists(conn, bucket_name):
28
- conn.create_bucket(bucket_name, location=region)
+ if region == "us-east-1":
29
+ # use "US Standard" region. workaround for https://github.com/boto/boto3/issues/125
30
+ conn.create_bucket(bucket_name)
31
+ else:
32
+ conn.create_bucket(bucket_name, location=region)
33
34
elif os.getenv('REGISTRY_STORAGE') == "gcs":
35
scopes = ['https://www.googleapis.com/auth/devstorage.full_control']
0 commit comments