Description
This policy flags AWS EBS Volumes that are considered idle. A volume is flagged as Idle if it meets one of the following conditions:
- It has been in an available state (unattached) for the past 30 days.
- It is in an in-use state (attached to an instance) but has recorded zero or null read and write operations (
VolumeReadOpsandVolumeWriteOps) over the last 30 days.
Rationale
EBS volumes incur storage costs regardless of whether they are not attached to an instance or actively utilized.
- Unattached Volumes: Volumes left in an available state often represent forgotten resources from decommissioned instances.
- Attached but Inactive Volumes: Volumes that remain attached but show no I/O activity may indicate they are no longer required, are remnants of incomplete configurations, or serve as secondary/failover disks that require explicit documentation and justification.
Identifying and addressing idle volumes helps reduce unnecessary monthly costs and improves cloud resource efficiency.
Audit
This policy flags an AWS EBS Volume as INCOMPLIANT if:
- The Volume
Statusis available and bothCloudWatch: Write OPS Sum, 30-DayandCloudWatch: Write OPS Sum, 30-Daymetrics are empty. - The Volume
Statusis in-use and bothCloudWatch: Write OPS Sum, 30-DayandCloudWatch: Write OPS Sum, 30-Daymetrics are either empty or zero.
The EBS Volume is marked as INAPPLICABLE if:
- Its
Statusis other than in-use or available. - Its
Create Timeis less than 30 days ago. - Its
Attachment Attach Timeis within the last 30 days.