turbot/gcp_thrifty

GitHub
Loading controls...

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:

steampipe check gcp_thrifty.control.compute_disk_unattached

Snapshot and share results via Steampipe Cloud:

steampipe login
steampipe check --share gcp_thrifty.control.compute_disk_unattached

Plugins & 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,
project
from
gcp_compute_disk;

Tags