turbot/aws_compliance

Query: cloudfront_distribution_configured_with_origin_failover

Usage

powerpipe query aws_compliance.query.cloudfront_distribution_configured_with_origin_failover

SQL

select
arn as resource,
case
when origin_groups ->> 'Items' is not null then 'ok'
else 'alarm'
end as status,
case
when origin_groups ->> 'Items' is not null then title || ' origin group is configured.'
else title || ' origin group not configured.'
end as reason
, region, account_id
from
aws_cloudfront_distribution;

Controls

The query is being used by the following controls: