Creating a bucket with CreateBucketConfiguration={'LocationConstraint': 'us-east-1'} should actually raise an error. Moto allows it.
In [7]: s3_cli.create_bucket(Bucket='pix4d-test-gba2', CreateBucketConfiguration={'LocationConstraint': 'us-east-1'})
...
ClientError: An error occurred (InvalidLocationConstraint) when calling the CreateBucket operation: The specified location-constraint is not valid
In AWS, us-east-1 is the default region and as such, things behave a little bit differently there:
LocationConstraint
equal to None. moto returns us-east-1CreateBucketConfiguration={'LocationConstraint': 'us-east-1'}
should actually raise an error. Moto allows it.(this issue is somewhat related to #971)