turbot/terraform_gcp_compliance

Query: iam_workload_identity_restricted

Usage

powerpipe query terraform_gcp_compliance.query.iam_workload_identity_restricted

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std ->> 'attribute_condition') is null or (attributes_std ->> 'attribute_condition') = '' then 'alarm'
else 'ok'
end status,
split_part(address, '.', 2) || case
when (attributes_std ->> 'attribute_condition') is null or (attributes_std ->> 'attribute_condition') = '' then ' attribute condition does not exist'
else ' attribute condition exists'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'google_iam_workload_identity_pool_provider';

Controls

The query is being used by the following controls: