turbot/aws_insights

Query: cloudfront_distribution_sni

Usage

powerpipe query aws_insights.query.cloudfront_distribution_sni

SQL

select
'SNI' as label,
case
when viewer_certificate ->> 'SSLSupportMethod' <> 'sni-only' then 'Disabled'
else 'Enabled'
end as value,
case
when viewer_certificate ->> 'SSLSupportMethod' <> 'sni-only' then 'alert'
else 'ok'
end as type
from
aws_cloudfront_distribution
where
arn = $1;

Dashboards

The query is used in the dashboards: