turbot/gcp_insights

Query: storage_bucket_retention_policy

Usage

powerpipe query gcp_insights.query.storage_bucket_retention_policy

Steampipe Tables

SQL

select
'Retention Policy' as label,
case when retention_policy is not null then 'Enabled' else 'Disabled' end as value,
case when retention_policy is not null then 'ok' else 'alert' end as type
from
gcp_storage_bucket
where
id = split_part($1, '/', 1)
and project = split_part($1, '/', 2);

Dashboards

The query is used in the dashboards: