You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should prevent the creation of buckets #2 and 4. Since you provide an existing bucket, setting logS3AccessLogs to false is kind of a NOP. To turn off logging CloudFront access, use the enableLogging flag in cloudFrontDistributionProps:
This will prevent creation of bucket #3. The construct will also then cease creating bucket #4.
That should satisfy your use case of no logging. This does appear to identify a bug though - if CloudFront logging is enabled (the default) and logCloudFrontAccessLog is false then only bucket #3 should be created and we also see bucket #4 created when running your code. We will look into that- thanks!
CloudFrontToS3 allows you to provide two boolean parameters to disable S3 logging, and CloudFront logging:
logS3AccessLogs
: boolean (default true)logCloudFrontAccessLog
: boolean (default true)When these are set to false, I expect there to be no created S3 buckets for logging purposes. However, this is not the case.
Reproduction Steps
Create the construct with
logS3AccessLogs
tofalse
, andlogCloudFrontAccessLog
tofalse
:Deploying this will result in two logging buckets being created:
I expect these two buckets to not have been created in the first place.
Error Log
There is no error log as this is a bug
Environment
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: