Skip to content
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

Bucket cannot have ACLs set with ObjectOwnership's BucketOwnerEnforced #57

Open
couling opened this issue Jun 7, 2023 · 2 comments
Open

Comments

@couling
Copy link

couling commented Jun 7, 2023

Deployment fails on this error:

Bucket cannot have ACLs set with ObjectOwnership's BucketOwnerEnforced setting (Service: Amazon S3; Status Code:  400; Error Code: InvalidBucketAclW  ithObjectOwnership ...

This looks like it's related to an AWS default's changed documented here: https://aws.amazon.com/about-aws/whats-new/2022/12/amazon-s3-automatically-enable-block-public-access-disable-access-control-lists-buckets-april-2023/

@tomreineke
Copy link

You can avoid this if you edit the packaged.yaml adding
OwnershipControls: Rules: - ObjectOwnership: ObjectWriter
to the respective bucket properties.
See https://repost.aws/knowledge-center/cloudformation-objectownership-acl-error

@alper
Copy link

alper commented Oct 10, 2024

What the hell is this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants