Loading controls...
Control: Buckets should have lifecycle policies
Description
Buckets should have a lifecycle policy associated for data retention.
Usage
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
SQL
select self_link as resource, case when lifecycle_rules is null then 'alarm' else 'ok' end as status, case when lifecycle_rules is null then name || ' has no lifecycle policy.' else name || ' has lifecycle policy.' end as reason, location, projectfrom gcp_storage_bucket;