Skip to content

Commit

Permalink
Opt in to automatic log bucket creation
Browse files Browse the repository at this point in the history
Now ACLs aren't enabled by default in logging buckets.

So I need to specify the ACL settings myself.

I don't know the right ACL settings for CloudFront distro logging
buckets.

But enableLogging: true creates a bucket for me.

aws/aws-cdk#25358
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront-readme.html#logging
  • Loading branch information
douglasnaphas committed Feb 4, 2024
1 parent 2e3959e commit c2b527a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infra/lib/madliberation-webapp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class MadliberationWebapp extends Stack {
}

const distroProps: any = {
logBucket: appBucket(this, "DistroLoggingBucket"),
enableLogging: true,
logFilePrefix: "distribution-access-logs/",
logIncludesCookies: true,
defaultBehavior: {
Expand Down

0 comments on commit c2b527a

Please sign in to comment.