Control: Buckets should have lifecycle policies
Buckets should have a lifecycle policy associated for data retention.
Run the control in your terminal:
steampipe check gcp_thrifty.control.storage_bucket_without_lifecycle_policy
Snapshot and share results via Steampipe Cloud:
steampipe loginsteampipe check --share gcp_thrifty.control.storage_bucket_without_lifecycle_policy
Plugins & Tables
selectself_link as resource,casewhen lifecycle_rules is null then 'alarm'else 'ok'end as status,casewhen lifecycle_rules is null then name || ' has no lifecycle policy.'else name || ' has lifecycle policy.'end as reason,location,projectfromgcp_storage_bucket;