turbot/alicloud_thrifty

GitHub
Loading controls...

Control: Disks should be resized if too large

Description

Large disks are unusual, expensive and should be reviewed.

Usage

steampipe check alicloud_thrifty.control.ecs_disk_large

Plugins & 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,
region,
account_id
from
alicloud_ecs_disk;

Tags