Skip to content

Changes To S3 Bucket Default Settings Breaks Access Logging #267

Open
@daniel-nagy

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

Metadata

Assignees

No one assigned

    Labels

    bug🐛 An issue with the system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions