aws / aws-sdk

Landing page for the AWS SDKs on GitHub
https://aws.amazon.com/tools/
Other
68 stars 13 forks source link

Confusing documentation for create_bucket function #565

Closed RyanFitzSimmonsAK closed 3 months ago

RyanFitzSimmonsAK commented 11 months ago

Original issue : https://github.com/boto/boto3/issues/3775

Ticket # for internal reference : P94453683

RyanFitzSimmonsAK commented 3 months ago

CreateBucket documentation has been updated to include a note describing this behavior.

To set an ACL on a bucket as part of a CreateBucket request, you must explicitly set S3 Object Ownership for the bucket to a different value than the default, BucketOwnerEnforced. Additionally, if your desired bucket ACL grants public access, you must first create the bucket (without the bucket ACL) and then explicitly disable Block Public Access on the bucket before using PutBucketAcl to set the ACL. If you try to create a bucket with a public ACL, the request will fail.

github-actions[bot] commented 3 months ago

This issue is now closed.

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.