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 loginpowerpipe control run aws_thrifty.control.high_iops_ebs_volumes --share
Steampipe Tables
Params
Args | Name | Default | Description | Variable |
---|---|---|---|---|
$1 | ebs_volume_max_iops |
| 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_idfrom aws_ebs_volume;