turbot/gcp_insights

Query: storage_bucket_no_retention_policy_count

Usage

powerpipe query gcp_insights.query.storage_bucket_no_retention_policy_count

Steampipe Tables

SQL

select
count(*) as value,
'No Retention Policy' as label,
case
count(*)
when 0 then 'ok'
else 'alert'
end as "type"
from
gcp_storage_bucket
where
retention_policy is null;

Dashboards

The query is used in the dashboards: