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
AwsSolutions-CFR3 fails when a Distribution has standard logging V2 enabled: AwsSolutions-CFR3: The CloudFront distribution does not have access logging enabled. Enabling access logs helps operators track all viewer requests for the content delivered through the Content Delivery Network.
Reproduction Steps
Standard logging V2 can't currently be configured by the Distribution template in CloudFormation. However, it can be configured using the AWS Logs templates (see this comment). A CDK solution is detailed in this comment. I think we would need to change the rule to also check if a CfnDeliverySource exists for the Distribution ARN with a log type of ACCESS_LOGS, and then possibly if a CfnDeliveryDestination and CfnDelivery exists too.
What did you expect to happen?
The linting to pass.
What actually happened?
The linting failed.
cdk-nag version
2.34.23
Language
Typescript
Other information
No response
The text was updated successfully, but these errors were encountered:
What is the problem?
AwsSolutions-CFR3
fails when a Distribution has standard logging V2 enabled:AwsSolutions-CFR3: The CloudFront distribution does not have access logging enabled. Enabling access logs helps operators track all viewer requests for the content delivered through the Content Delivery Network.
Reproduction Steps
Standard logging V2 can't currently be configured by the Distribution template in CloudFormation. However, it can be configured using the AWS Logs templates (see this comment). A CDK solution is detailed in this comment. I think we would need to change the rule to also check if a
CfnDeliverySource
exists for the Distribution ARN with a log type ofACCESS_LOGS
, and then possibly if aCfnDeliveryDestination
andCfnDelivery
exists too.What did you expect to happen?
The linting to pass.
What actually happened?
The linting failed.
cdk-nag version
2.34.23
Language
Typescript
Other information
No response
The text was updated successfully, but these errors were encountered: