turbot/aws_thrifty

Control: EBS volumes should be resized if too large

Description

Large EBS volumes are unusual, expensive and should be reviewed.

Usage

Run the control in your terminal:

powerpipe control run aws_thrifty.control.large_ebs_volumes

Snapshot and share results via Turbot Pipes:

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

Steampipe Tables

Params

ArgsNameDefaultDescriptionVariable
$1ebs_volume_max_size_gb
100
The maximum size (GB) allowed for volumes.

SQL

select
arn as resource,
case
when size <= $1 then 'ok'
else 'alarm'
end as status,
volume_id || ' is ' || size || 'GB.' as reason
, region, account_id
from
aws_ebs_volume;

Tags