AWS / EBS
Unused EBS volumes and gp2 to gp3 migration: a cleanup guide
An EBS volume costs the same whether it is attached to a busy instance, attached to a stopped one, or attached to nothing. Most EBS savings come from two jobs: removing volumes nobody uses, and moving the rest from gp2 to gp3.
You pay for provisioned gigabytes
The EBS pricing page charges volumes per GB provisioned per month until you release the storage. A 500 GiB volume holding 20 GiB of data is billed for 500 GiB. Whether an instance reads from it does not matter.
Stopping an instance does not change this. AWS states that a stopped instance has no usage or data transfer charges, but charges are incurred to store its EBS volumes. Root and data volumes stay attached while the instance is stopped.
This is relevant if you schedule dev and test machines. Stopping EC2 instances outside working hours removes compute hours. SnoozeDB does this for EC2 and RDS. The volumes behind those instances keep billing every hour of the month, so their size and type still need attention.
Unattached volumes are the clearest waste. Termination usually deletes an instance's volumes, but AWS notes that an instance can be set up to keep them. Volumes detached by hand, or left behind by old tests, stay in the available state and bill at full price.
gp2 and gp3 prices
These are US East (N. Virginia) rates from the EBS pricing page. Prices vary by Region, so check yours before estimating.
| Item | Price | Note |
|---|---|---|
| gp2 storage | $0.10 per GB-month | Performance tied to size |
| gp3 storage | $0.08 per GB-month | Includes 3,000 IOPS and 125 MiB/s |
| gp3 IOPS above 3,000 | $0.005 per IOPS-month | Up to 80,000 IOPS |
| gp3 throughput above 125 MiB/s | $0.04 per MiB/s-month | Up to 2,000 MiB/s |
| Snapshot, standard tier | $0.05 per GB-month | Billed on data stored |
| Snapshot, archive tier | $0.0125 per GB-month | 90-day minimum, $0.03 per GB to restore |
The performance models differ more than the prices:
- gp2 baseline is 3 IOPS per GiB, with a minimum of 100 and a maximum of 16,000. Volumes under 1,000 GiB can burst to 3,000 IOPS while their I/O credits last.
- gp2 throughput is 128 MiB/s up to 170 GiB, and 250 MiB/s from 334 GiB.
- gp3 delivers 3,000 IOPS and 125 MiB/s at any size, with no burst credits. You can add IOPS at up to 500 per GiB, and throughput at up to 0.25 MiB/s per provisioned IOPS.
For a 100 GiB volume, gp2 gives a 300 IOPS baseline. gp3 gives 3,000 sustained, for 20% less per GB. The only small loss is throughput: 125 MiB/s instead of 128.
When gp3 needs extra IOPS or throughput
Large gp2 volumes have more included performance than gp3's baseline. A gp2 volume above 1,000 GiB has a baseline above 3,000 IOPS, and one of 334 GiB or more delivers 250 MiB/s. On gp3 you pay separately to keep that performance.
AWS handles part of this for you. If you change gp2 to gp3 without specifying IOPS or throughput, EBS provisions the higher of the gp2 volume's performance and the gp3 baseline. A 500 GiB gp2 volume becomes a gp3 volume with 3,000 IOPS and 250 MiB/s.
That default keeps performance, but the extra throughput costs money. Check CloudWatch for what the volume actually uses. If a dev volume never comes close to 250 MiB/s, set --throughput 125 and avoid the charge. If it does, keep it: gp3 is usually still cheaper.
Find unattached volumes
Run this in each account and Region. The status filter returns only volumes that are not attached to an instance:
aws ec2 describe-volumes \
--filters Name=status,Values=available \
--query "Volumes[].[VolumeId,VolumeType,Size,CreateTime]" \
--output tableVolumes attached to stopped instances do not appear here. To review those, list stopped instances with their volume IDs:
aws ec2 describe-instances \
--filters Name=instance-state-name,Values=stopped \
--query "Reservations[].Instances[].[InstanceId,BlockDeviceMappings[].Ebs.VolumeId]" \
--output jsonAn instance stopped every night by a schedule is in use. An instance stopped for months is a candidate for termination, and its volumes with it.
Delete them safely
Check tags and creation dates, and ask the owner if there is one. Then take a final snapshot and delete the volume. A volume must be detached before it can be deleted.
aws ec2 create-snapshot \
--volume-id vol-0123456789abcdef0 \
--description "Final snapshot before deletion"
aws ec2 delete-volume --volume-id vol-0123456789abcdef0The snapshot is much cheaper than the volume, because snapshots are billed on the data stored, not on the provisioned size.
For a second safety net, create a Recycle Bin retention rule. Deleted volumes can be kept for 1 to 7 days, and deleted snapshots for 1 to 365 days. Resources in the Recycle Bin are billed at their normal rate, so a long retention period delays the saving.
Move gp2 volumes to gp3 in place
List the gp2 volumes first:
aws ec2 describe-volumes \
--filters Name=volume-type,Values=gp2 \
--query "Volumes[].[VolumeId,Size,Iops,State,Attachments[0].InstanceId]" \
--output tableElastic Volumes changes the type while the volume stays attached and the instance keeps running, on all current generation instances. There is no charge for the change itself, and the new price applies once the modification starts.
aws ec2 modify-volume \
--volume-id vol-0123456789abcdef0 \
--volume-type gp3
aws ec2 describe-volumes-modifications \
--volume-ids vol-0123456789abcdef0Add --iops or --throughput to set gp3 performance yourself. Know the limits before you start:
- A modification cannot be cancelled once submitted.
- A volume can be modified up to four times in a rolling 24-hour period, and each change must reach
completedbefore the next. - A modification can take from a few minutes to a few hours. AWS gives up to six hours for a 1 TiB volume.
- Volumes cannot shrink. A type change is a good moment to resize, but only upward.
Change one dev volume, watch its latency and throughput for a day, then do the rest in batches. Update launch templates and infrastructure code at the same time, or new volumes will keep arriving as gp2.
Old snapshots and the archive tier
Deleting a volume does not delete its snapshots. Snapshots are incremental, so deleting one may not reduce cost if later snapshots reference its data. List old ones, then decide which to delete and which to archive:
aws ec2 describe-snapshots --owner-ids self \
--query "Snapshots[?StartTime<='2026-07-01'].[SnapshotId,VolumeId,VolumeSize,StartTime]" \
--output table
aws ec2 modify-snapshot-tier \
--snapshot-id snap-0123456789abcdef0 \
--storage-tier archiveVolumeSize is the size of the source volume, not the billed snapshot size. EBS Snapshots Archive converts a snapshot into a full copy, keeps it at least 90 days, and can take up to 72 hours to restore. AWS recommends it for monthly, quarterly or yearly snapshots. Archiving daily incremental snapshots can cost more than keeping them in the standard tier.
RDS snapshots follow different billing rules. See how to find and delete orphaned RDS snapshots.
A worked example
Take a dev account in US East (N. Virginia): 12 instances with 100 GiB gp2 volumes, four forgotten 250 GiB gp2 volumes, and one 2,000 GiB gp2 database volume. Monthly prices are rounded and will differ in other Regions.
| Item | Before | After |
|---|---|---|
| 12 dev volumes, 100 GiB gp2 each | $120 | $96 as gp3 |
| 4 unattached gp2 volumes, 250 GiB each | $100 | $0, deleted |
| Final snapshots of those 4, 240 GB of data | $0 | $12 |
| 1 database volume, 2,000 GiB gp2 | $200 | $180 as gp3 |
| Total per month | $420 | $288 |
The database volume shows the gp3 trade-off. On gp2, 2,000 GiB gives 6,000 IOPS and 250 MiB/s. Keeping both on gp3 costs $160 of storage, $15 for 3,000 extra IOPS and $5 for 125 extra MiB/s: $180, still $20 less than gp2.
The total drops by $132 a month, about 31%. The 12 dev instances can still be stopped at night; their $96 of gp3 storage stays on the bill either way.
Keep it from coming back
Cleanup is a one-off unless someone checks again. SnoozeDB's Cost Recommendations, on paid plans with the EBS module enabled, list unattached EBS volumes and costly provisioned IOPS storage with an estimated monthly impact. The engine is read-only: it does not delete or modify volumes, so the changes above stay in your hands.
For the other usual sources of idle spend, see how to measure AWS cloud waste.