turbot/aws_insights

Query: cloudfront_distribution_logging_status

Usage

powerpipe query aws_insights.query.cloudfront_distribution_logging_status

SQL

select
logging_status,
count(*)
from (
select
case when logging ->> 'Enabled' = 'false' then 'disabled' else 'enabled' end as logging_status
from
aws_cloudfront_distribution
) as d
group by
logging_status
order by
logging_status;

Dashboards

The query is used in the dashboards: