turbot/terraform_gcp_compliance

Query: storage_bucket_uniform_access_enabled

Usage

powerpipe query terraform_gcp_compliance.query.storage_bucket_uniform_access_enabled

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std ->> 'uniform_bucket_level_access')::boolean then 'ok' else 'alarm'
end as status,
split_part(address, '.', 2) || case
when (attributes_std -> 'uniform_bucket_level_access') is null then ' ''uniform_bucket_level_access'' is not defined'
when (attributes_std ->> 'uniform_bucket_level_access')::boolean then ' uniform bucket-level access enabled'
else ' uniform bucket-level access not enabled'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'google_storage_bucket';

Controls

The query is being used by the following controls: