turbot/terraform_gcp_compliance

Query: iam_folder_use_basic_role

Usage

powerpipe query terraform_gcp_compliance.query.iam_folder_use_basic_role

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std ->> 'role') like any (array ['roles/owner', 'roles/editor', 'roles/viewer']) then 'alarm'
else 'ok'
end status,
split_part(address, '.', 2) || case
when (attributes_std ->> 'role') like any (array ['roles/owner', 'roles/editor', 'roles/viewer']) then ' uses basic role'
else ' does not use basic role'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type in ('google_folder_iam_member', 'google_folder_iam_binding');

Controls

The query is being used by the following controls: