turbot/aws_compliance

Query: cloudfront_distribution_field_level_encryption_enabled

Usage

powerpipe query aws_compliance.query.cloudfront_distribution_field_level_encryption_enabled

SQL

select
arn as resource,
case
when default_cache_behavior ->> 'FieldLevelEncryptionId' = '' then 'alarm'
else 'ok'
end as status,
case
when default_cache_behavior ->> 'FieldLevelEncryptionId' = '' then title || ' field level encryption disabled.'
else title || ' field level encryption enabled.'
end as reason
, region, account_id
from
aws_cloudfront_distribution;

Controls

The query is being used by the following controls: