turbot/aws_thrifty
Loading controls...

Control: EBS volumes with high IOPS should be resized if too large

Description

High IOPS io1 and io2 volumes are costly and usage should be reviewed.

Usage

Run the control in your terminal:

powerpipe control run aws_thrifty.control.high_iops_ebs_volumes

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run aws_thrifty.control.high_iops_ebs_volumes --share

Steampipe Tables

Params

ArgsNameDefaultDescriptionVariable
$1ebs_volume_max_iops
32000
The maximum IOPS allowed for volumes.

SQL

select
arn as resource,
case
when volume_type not in ('io1', 'io2') then 'skip'
when iops > $1 then 'alarm'
else 'ok'
end as status,
case
when volume_type not in ('io1', 'io2') then volume_id || ' type is ' || volume_type || '.'
else volume_id || ' has ' || iops || ' iops.'
end as reason,
region,
account_id
from
aws_ebs_volume;

Tags