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 Risposta
1
Risposta accettata

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
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande