Control: CloudFront distributions should have logging enabled
Description
This control checks whether server access logging is enabled on CloudFront distributions. The control fails if access logging is not enabled for a distribution.
Usage
Run the control in your terminal:
powerpipe control run terraform_aws_compliance.control.cloudfront_distribution_logging_enabled
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run terraform_aws_compliance.control.cloudfront_distribution_logging_enabled --share
SQL
This control uses a named query:
cloudfront_distribution_logging_enabled