Open mpalmer opened 1 year ago
This requires the adding of something along the lines of the below to enable ACLs now they are by default off...
resource "aws_s3_bucket_ownership_controls" "my-bucket" {
bucket = aws_s3_bucket.my-bucket.id
rule {
object_ownership = "BucketOwnerPreferred"
}
}
Describe the bug
When attempting to apply the secure-baseline to a newly-created account, I'm getting the following errors:
Versions
Reproduction
Apply secure-baseline to a new account, or at least in an account where it needs to create a new S3 bucket. It may currently be region-specific (I ran it in ap-southeast-2), but eventually it'll soon be happening with any new S3 bucket, due to the changes to new bucket defaults.
Expected behavior
No terraform errors.
Actual behavior
Error as described above.
Additional context
Manually jiggering the bucket settings to enable ACLs allows a re-run of the terraform config to succeed.