Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ACLs must be allowed for cloudfront log bucket
In https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/AccessLogs.html it's described how since april 2023, new bucket are created with ACLs disabled. Cloudfront still requires them, so it needs to be set. In aws/aws-cdk#25358, specifically under 'Using an S3 Bucket for CloudFront logs' there's a solution posted. This implements that option, to prevent the cloudformation error: ""Invalid request provided: AWS::CloudFront::Distribution: The S3 bucket that you specified for CloudFront logs does not enable ACL access"
- Loading branch information