Skip to content

Commit

Permalink
fix: Configure permissions to allow CloudFront to write to the access…
Browse files Browse the repository at this point in the history
… log S3 bucket when creating a new bucket for the Blazor WebAssembly App recipe
  • Loading branch information
ashovlin committed Mar 21, 2024
1 parent ba3917b commit 7e89e1d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ private void ConfigureCloudFrontDistribution(Configuration settings)
var loggingBucket = new Bucket(this, nameof(AccessLoggingBucket), InvokeCustomizeCDKPropsEvent(nameof(AccessLoggingBucket), this, new BucketProps
{
RemovalPolicy = RemovalPolicy.RETAIN,
AccessControl = BucketAccessControl.LOG_DELIVERY_WRITE
}));

distributionProps.LogBucket = loggingBucket;
Expand Down

0 comments on commit 7e89e1d

Please sign in to comment.