turbot/alicloud_thrifty
Loading controls...

Control: ECS disks with high IOPS should be reviewed

Description

High IOPS PL1, PL2 and PL3 disks are costly and their usage should be reviewed.

Usage

Run the control in your terminal:

powerpipe control run alicloud_thrifty.control.ecs_disk_high_iops

Snapshot and share results via Turbot Pipes:

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

Steampipe Tables

Params

ArgsNameDefaultDescriptionVariable
$1ecs_disk_max_iops
32000
The maximum IOPS allowed for disks.

SQL

select
arn as resource,
case
when category <> 'cloud_essd' then 'skip'
when iops > $1 then 'alarm'
else 'ok'
end as status,
case
when category <> 'cloud_essd' then title || ' is of type ' || category || '.'
else title || ' with performance category ' || performance_level || ' has ' || iops || ' iops.'
end as reason,
account_id,
region
from
alicloud_ecs_disk;

Tags