-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
create_bucket examples don't explain Region requirements #4006
Comments
Hi @jrotenstein, thanks for reaching out. The first example (
To clarify, you'd like both examples to explain that nuance? |
This isn't fully accurate. If the client is created in a different region other than
Therefore, the second example in the documentation is only valid if the client is using In fact, even the first example only works if the client region is I appreciate that this is probably too much detail to put in the documentation, but as per the linked StackOverflow question, it is confusing some users (and me!). It would probably be better for examples to focus on something that works for ALL regions rather than showing exceptions that only work in Anyway, just passing-on the information. It's up to you folks to determine what you'd like to include. :) |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the issue
The two examples shown at the bottom of the
create_bucket()
page do not provide sufficient context. Specifically, the second example only works when used with theus-east-1
region. If used with any other region, it returns anIllegalLocationConstraintException
error.See StackOverflow discussion: python - Unexpected response output when creating an S3 bucket using boto3 - Stack Overflow
Links
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3/client/create_bucket.html
The text was updated successfully, but these errors were encountered: