turbot/aws_insights

Query: cloudfront_distribution_logging

Usage

powerpipe query aws_insights.query.cloudfront_distribution_logging

SQL

select
'Logging' as label,
case
when logging ->> 'Enabled' = 'false' then 'Disabled'
else 'Enabled'
end as value,
case
when logging ->> 'Enabled' = 'false' then 'alert'
else 'ok'
end as type
from
aws_cloudfront_distribution
where
arn = $1;

Dashboards

The query is used in the dashboards: