aldy120 / s3-note

Note for Amazon S3
0 stars 0 forks source link

Reset bucket ACL when creating a bucket with the same bucket name owned by your account #8

Open aldy120 opened 4 years ago

aldy120 commented 4 years ago

The bucket you tried to create already exists, and you own it. Amazon S3 returns this error in all AWS Regions except us-east-1 (N. Virginia). For legacy compatibility, if you re-create an existing bucket that you already own in us-east-1, Amazon S3 returns 200 OK and resets the bucket access control lists (ACLs).

aldy120 commented 4 years ago

超雷的耶, bucket ACL 會被重置,據說還不會留下修改 ACL 的紀錄,只能從 CloudTrail 看到 createBucket 成功。