turbot/aws_insights

Query: cloudfront_distribution_logging_disabled

Usage

powerpipe query aws_insights.query.cloudfront_distribution_logging_disabled

SQL

select
'Logging Disabled' as label,
count(*) as value,
case count(*) when 0 then 'ok' else 'alert' end as type
from
aws_cloudfront_distribution
where
not (logging -> 'Enabled')::boolean;

Dashboards

The query is used in the dashboards: