Control: Unused disks should be removed
Description
Unattached disks cost money and should be removed unless there is a business need to retain them.
Usage
Run the control in your terminal:
powerpipe control run gcp_thrifty.control.compute_disk_unattached
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run gcp_thrifty.control.compute_disk_unattached --share
Steampipe Tables
SQL
select self_link as resource, case when users is null then 'alarm' else 'ok' end as status, case when users is null then title || ' has no attachments.' else title || ' has attachments.' end as reason , location, projectfrom gcp_compute_disk;