It looks like the aws_s3_bucket_acl resource is attempting to set the bucket's ACL to private, but this operation is being blocked because ACLs are not supported for the bucket.
ACLs are now considered legacy access control, with bucket policies and IAM policies being the recommended way to manage access to S3 buckets.
Simply removing the ACL resource solves the issue.
Fixes #188
Buckets are set to private by default now since April 27th, 2023.
It looks like the aws_s3_bucket_acl resource is attempting to set the bucket's ACL to private, but this operation is being blocked because ACLs are not supported for the bucket.
ACLs are now considered legacy access control, with bucket policies and IAM policies being the recommended way to manage access to S3 buckets.
Simply removing the ACL resource solves the issue.