silvermine / serverless-plugin-cloudfront-lambda-edge

Adds Lambda@Edge support to Serverless
MIT License
296 stars 41 forks source link

CREATE_FAILED: WebsiteBucket (AWS::S3::Bucket) Resource handler returned message: "Bucket cannot have ACLs set with ObjectOwnership's BucketOwnerEnforced #84

Closed fusionbeam closed 4 months ago

fusionbeam commented 4 months ago

Hi,

"Since 25.04.2023 Amazon changed default settings for newly created buckets. The ACL on buckets was considered as wrong practice (here is some nice post about that). To discourage using them the option BucketOwnerEnforced started to be the default one."

As a result the plugin fails to create the s3 bucket: CREATE_FAILED: WebsiteBucket (AWS::S3::Bucket) Resource handler returned message: "Bucket cannot have ACLs set with ObjectOwnership's BucketOwnerEnforced

Any thoughts on how to use this plugin nowadays?

Thanks, R