turbot/aws_compliance

Query: cloudfront_distribution_use_custom_ssl_certificate

Usage

powerpipe query aws_compliance.query.cloudfront_distribution_use_custom_ssl_certificate

SQL

select
arn as resource,
case
when viewer_certificate ->> 'ACMCertificateArn' is not null and viewer_certificate ->> 'Certificate' is not null then 'ok'
else 'alarm'
end as status,
case
when viewer_certificate ->> 'ACMCertificateArn' is not null and viewer_certificate ->> 'Certificate' is not null then title || ' uses custom SSL certificate.'
else title || ' does not use custom SSL certificate.'
end as reason
, region, account_id
from
aws_cloudfront_distribution;

Controls

The query is being used by the following controls: