turbot/terraform_aws_compliance

Query: efs_access_point_has_user_identity

Usage

powerpipe query terraform_aws_compliance.query.efs_access_point_has_user_identity

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std -> 'posix_user') is null then 'alarm'
when (attributes_std -> 'posix_user' -> 'gid') is not null then 'ok'
else 'alarm'
end as status,
split_part(address, '.', 2) || case
when (attributes_std -> 'posix_user') is null then ' ''posix_user'' is not defined'
when (attributes_std -> 'posix_user' -> 'gid') is not null then ' has user identity'
else ' does not have user identity'
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: