turbot/aws_compliance

Query: cloudfront_distribution_logging_enabled

Usage

powerpipe query aws_compliance.query.cloudfront_distribution_logging_enabled

SQL

select
arn as resource,
case
when logging ->> 'Enabled' = 'true' then 'ok'
else 'alarm'
end as status,
case
when logging ->> 'Enabled' = 'true' then title || ' logging enabled.'
else title || ' logging disabled.'
end as reason
, region, account_id
from
aws_cloudfront_distribution;

Controls

The query is being used by the following controls: