turbot/aws_insights

Query: cloudfront_distribution_sni_status

Usage

powerpipe query aws_insights.query.cloudfront_distribution_sni_status

SQL

select
sni_status,
count(*)
from (
select
case when viewer_certificate ->> 'SSLSupportMethod' <> 'sni-only' then 'disabled' else 'enabled' end as sni_status
from
aws_cloudfront_distribution
) as d
group by
sni_status
order by
sni_status;

Dashboards

The query is used in the dashboards: