turbot/terraform_aws_compliance

Query: efs_file_system_encrypt_data_at_rest

Usage

powerpipe query terraform_aws_compliance.query.efs_file_system_encrypt_data_at_rest

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std -> 'encrypted') is null then 'alarm'
when (attributes_std ->> 'encrypted') :: boolean then 'ok'
else 'alarm'
end as status,
split_part(address, '.', 2) || case
when (attributes_std -> 'encrypted') is null then ' ''encrypted'' is not defined'
when (attributes_std ->> 'encrypted') :: boolean then ' encrypted at rest'
else ' not encrypted at rest'
end || '.' as reason,
path || ':' || start_line
from
terraform_resource
where
type = 'aws_efs_file_system';

Controls

The query is being used by the following controls: