turbot/aws_compliance

Query: cloudfront_distribution_latest_tls_version

Usage

powerpipe query aws_compliance.query.cloudfront_distribution_latest_tls_version

SQL

select
arn as resource,
case
when viewer_certificate ->> 'CertificateSource' = 'cloudfront'
and viewer_certificate ->> 'MinimumProtocolVersion' = 'TLSv1.2_2021' then 'ok'
else 'alarm'
end as status,
case
when viewer_certificate ->> 'CertificateSource' = 'cloudfront'
and viewer_certificate ->> 'MinimumProtocolVersion' = 'TLSv1.2_2021' then title || ' uses latest TLS version.'
else title || ' not uses latest TLS version.'
end as reason
, region, account_id
from
aws_cloudfront_distribution;

Controls

The query is being used by the following controls: