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 loginpowerpipe control run alicloud_thrifty.control.ecs_disk_large --share
Steampipe Tables
Params
Args | Name | Default | Description | Variable |
---|---|---|---|---|
$1 | ecs_disk_max_size_gb |
| 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, regionfrom alicloud_ecs_disk;