Control: CloudFront distributions should have latest TLS version
Description
This control checks whether CloudFront distribution uses latest TLS version.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.cloudfront_distribution_latest_tls_version
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.cloudfront_distribution_latest_tls_version --share
SQL
This control uses a named query:
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_idfrom aws_cloudfront_distribution;