Control: EFS access point should have a user identity
Description
This control checks whether the Elastic File System access point has a user identity associated with it.
Usage
Run the control in your terminal:
powerpipe control run terraform_aws_compliance.control.efs_access_point_has_user_identity
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run terraform_aws_compliance.control.efs_access_point_has_user_identity --share
SQL
This control uses a named query:
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_linefrom terraform_resourcewhere type = 'aws_efs_access_point';