mikebharris/CLAMS

Fails to deploy the static content for the web site into S3 due to changes in AWS defaults.

Closed this issue · 0 comments

Fails to deploy the static content for the web site into S3 due to changes in AWS defaults - see https://aws.amazon.com/about-aws/whats-new/2022/12/amazon-s3-automatically-enable-block-public-access-disable-access-control-lists-buckets-april-2023/.

The error deploying CLAMS is:
│ Error: creating Amazon S3 (Simple Storage) Bucket (clams.events.hacktionlab.org): InvalidBucketAclWithObjectOwnership: Bucket cannot have ACLs set with ObjectOwnership's BucketOwnerEnforced setting │ status code: 400, request id: KP8B5D2G3A7QSG89, host id: /pYswvEzaOAO7cLuIMljOzd1b+m1P6ydErXx8tKI5YPe0FxLth9ixIP53ACmKvaeMDbHSlN6ejk= │ │ with module.s3.aws_s3_bucket.clams_frontend_static_content_bucket, │ on modules/s3/main.tf line 1, in resource "aws_s3_bucket" "clams_frontend_static_content_bucket": │ 1: resource "aws_s3_bucket" "clams_frontend_static_content_bucket" {

For more information see this thread: https://stackoverflow.com/questions/76097031/aws-s3-bucket-cannot-have-acls-set-with-objectownerships-bucketownerenforced-s