S3: LocationConstraints should be validated
bblommers opened this issue · comments
Bert Blommers commented
Two scenario's:
- (How) Does AWS complain if the region is incorrect in the same partition?
- (How) does AWS complain if the region is incorrect in a different partition?
s3_resource = boto3.resource("s3", region_name="us-east-2")
s3_resource.create_bucket(Bucket="foobar", CreateBucketConfiguration={"LocationConstraint": "eu-central-1"})
s3_resource = boto3.resource("s3", region_name="us-east-2")
s3_resource.create_bucket(Bucket="foobar", CreateBucketConfiguration={"LocationConstraint": "us-gov-east-2"})