turbot/gcp_thrifty
GitHub
Loading controls...

Control: Disks should be resized if too large

Description

Large compute disks are unusual, expensive and should be reviewed.

Usage

Run the control in your terminal:

steampipe check gcp_thrifty.control.compute_disk_large

Snapshot and share results via Steampipe Cloud:

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

Plugins & Tables

Params

ArgsNameDefaultDescriptionVariable
$1compute_disk_max_size_gb
100
The maximum size (GB) allowed for disks.

SQL

select
self_link as resource,
case
when size_gb <= $1 then 'ok'
else 'info'
end as status,
title || ' has ' || size_gb || ' GB.' as reason,
location,
project
from
gcp_compute_disk;

Tags