expel-io / terraform-aws-cloudtrail

Terraform module for configuring AWS CloudTrail to integrate with Expel
MIT License
2 stars 4 forks source link

TME-2253: Update New CloudTrail ACL Configurations #44

Closed bachu20 closed 1 year ago

bachu20 commented 1 year ago

Description:

Updates the S3 terraform configuration to address a recent change made with respect to how AWS handles defaults for Access Control Lists on S3 buckets. Going forward all new S3 buckets will default their object ownership setting to bucket owner enforced, which means that requests to set/update ACLs will fail as well.

Detailed list or summary of changes made:

Steps to test/reproduce the changes in this PR:

output "cloudtrail_integration" { value = module.expel_aws_cloudtrail_integration }

- Applying the above configuration should result in an error along the lines of

AccessControlListNotSupported: The bucket does not allow ACLs │ status code: 400