turbot/alicloud_thrifty
Loading controls...

Control: Disks should be resized if too large

Description

Large disks are unusual, expensive and should be reviewed.

Usage

Run the control in your terminal:

powerpipe control run alicloud_thrifty.control.ecs_disk_large

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run alicloud_thrifty.control.ecs_disk_large --share

Steampipe Tables

Params

ArgsNameDefaultDescriptionVariable
$1ecs_disk_max_size_gb
100
The maximum size in GB allowed for disks.

SQL

select
arn as resource,
case
when size <= $1 then 'ok'
else 'alarm'
end as status,
disk_id || ' is ' || size || ' GiB.' as reason,
account_id,
region
from
alicloud_ecs_disk;

Tags