This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Impossible to create a bucket in us-east-1 if underlying botocore session sets another default region #3489
Labels
bug
This issue is a confirmed bug.
Describe the bug
When creating an S3 client with
region_name=us-east-1
from aboto3.Session
, if the underlyingbotocore.session.Session
is setup with abotocore.config.Config
that defines a differentregion_name
, creating buckets will always fail with anIllegalLocationConstraintException
Expected Behavior
Being able to create buckets in the
us-east-1
regionCurrent Behavior
Reproduction Steps
Possible Solution
In the example above, it seems like like for the specific case of "us-east-1", the S3 endpoint for "eu-west-1" is still called.
Additional Information/Context
No response
SDK version used
boto3 1.26.1, botocore 1.29.1
Environment details (OS name and version, etc.)
Tested on Ubuntu 20.04 and lambda runtime
python3.9
The text was updated successfully, but these errors were encountered: