From 92442c8c229b09b1c577433c14cc11371a9456f0 Mon Sep 17 00:00:00 2001 From: Tyler Nivin Date: Fri, 30 Sep 2022 22:19:38 -0500 Subject: [PATCH] us-east-1 is an invalid value for location constraint --- pypicloud/storage/s3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypicloud/storage/s3.py b/pypicloud/storage/s3.py index a05ed95..52a0631 100644 --- a/pypicloud/storage/s3.py +++ b/pypicloud/storage/s3.py @@ -113,7 +113,7 @@ def verify_value(val): if e.response["Error"]["Code"] == "404": LOG.info("Creating S3 bucket %s", bucket_name) - if config.region_name: + if config.region_name and config.region_name != "us-east-1": location = {"LocationConstraint": config.region_name} bucket.create(CreateBucketConfiguration=location) else: