turbot/gcp_insights

Query: storage_bucket_logging_status

Usage

powerpipe query gcp_insights.query.storage_bucket_logging_status

Steampipe Tables

SQL

with buckets as (
select
case
when log_bucket is null then 'disabled'
else 'enabled'
end as logging_status
from
gcp_storage_bucket
)
select
logging_status,
count(*)
from
buckets
group by
logging_status;

Dashboards

The query is used in the dashboards: