turbot/terraform_aws_compliance

Query: efs_access_point_has_root_directory

Usage

powerpipe query terraform_aws_compliance.query.efs_access_point_has_root_directory

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std -> 'root_directory') is null then 'alarm'
when (attributes_std -> 'root_directory' -> 'path') is not null then 'ok'
else 'alarm'
end as status,
split_part(address, '.', 2) || case
when (attributes_std -> 'root_directory') is null then ' ''root_directory'' is not defined'
when (attributes_std -> 'root_directory' -> 'path') is not null then ' has root directory'
else ' does not have root directory'
end || '.' as reason
, path || ':' || start_line
from
terraform_resource
where
type = 'aws_efs_access_point';

Controls

The query is being used by the following controls: