Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only provide a LocationConstraint when creating an S3 bucket if region != us-east-1 #305

Closed
hiddenillusion opened this issue May 26, 2021 · 1 comment
Assignees

Comments

@hiddenillusion
Copy link

hiddenillusion commented May 26, 2021

us-east-1 is the default region where the S3 bucket will get created if a LocationConstraint isn't provided.

However, there's an issue that causes the CreateBucket operation to fail if us-east-1 is explicitly placed as the LocationContraint:

Could not create bucket <BUCKET_NAME>t: An error occurred (InvalidLocationConstraint) when calling the CreateBucket operation: The specified location-constraint is not valid

S3.CreateBucket() should check what the values of region & self.aws_account.default_region are and skip adding the LocationConstraint if us-east-1 is provided

@Fryyyyy
Copy link
Collaborator

Fryyyyy commented May 27, 2021

boto/boto3#125 👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants