turbot/gcp_insights

Query: logging_buckets_for_storage_bucket

Usage

powerpipe query gcp_insights.query.logging_buckets_for_storage_bucket

SQL

select
l.name as bucket_name
from
gcp_storage_bucket b,
gcp_logging_bucket l
where
b.id = $1
and b.log_bucket is not null
and b.log_bucket = l.name;