Open
Description
Describe the Bug
AWS made changes to the default settings for S3 buckets which is causing the creation of the S3 bucket for access logs to fail with the following error
Error creating S3 bucket: InvalidBucketAclWithObjectOwnership: Bucket cannot have ACLs set with ObjectOwnership's BucketOwnerEnforced setting
See this issue for more information hashicorp/terraform-provider-aws#28353.
Expected Behavior
When access logging is enabled terraform plan
succeeds.
Steps to Reproduce
Set cloudfront_access_logging_enabled
to true
.
Screenshots
No response
Environment
Github Actions Ubuntu latest
Terraform 1.1.9
Module version ~> 0.82.4
Additional Context
No response