CloudFormation - s3:PutBucketAcl Access Denied

0

I am updating a simple CloudFormation Stacks, for update ACL

Resources: MyS3Bucket: Type: AWS::S3::Bucket Properties: AccessControl: PublicRead

The CloudFormation is using the next role and assuming it:

AmazonS3FullAccess: { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:", "s3-object-lambda:" ], "Resource": "*" } ] }

But when submitting the update the stack always appears:

MyS3Bucket UPDATE_FAILED API: s3:PutBucketAcl Access Denied

Enter image description here

1 回答
1
已接受的回答

Hi! Are you trying to add a PublicRead Policy? If so, have you turned off the bucket's S3 Block Public Access feature - if enabled?

S3 Block Public Access settings If the failed request involves public access or public policies, then check the S3 Block Public Access settings on your account, bucket, or S3 access point. Starting in April 2023, all Block Public Access settings are enabled by default for new buckets.

Here are some coomon causes and resolution(s) for S3 buckets: Troubleshoot Access Denied (403 Forbidden) errors in Amazon S3

AWS
ART
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则