turbot/steampipe-mod-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
and account_id = split_part($1, ':', 5);

Dashboards

The query is used in the dashboards: