Terminating an EC2 instance deletes its root volume by default, but snapshots stay behind. Manual snapshots, AMI-backed snapshots, and snapshots of volumes that no longer exist keep billing $0.05 per GB-month, and nothing lists them for you.
Field Insight: The Hidden Cost Trap
Terminating an EC2 instance deletes its root volume by default, but manual and AMI-backed EBS snapshots stay behind quietly accumulating $0.05/GB-month across every region.
A worked example
One account held 61 snapshots totalling 3,200 GB, costing $160 a month. Of that, 1,900 GB was waste: 1,400 GB of snapshots older than 90 days at $70 a month, and 500 GB orphaned from deleted volumes at $25 a month. Removing them saved $95 a month, $1,140 a year. The remaining 1,300 GB, $65 a month, was in policy and stayed. The sizes use VolumeSize, a conservative estimate, since AWS bills stored incremental blocks.
A closer look
Snapshots accumulate because nothing deletes them by default. They exist for good reasons: a backup before a risky change, the base image for an AMI, a copy kept before a volume is resized. The problem is that the snapshot outlives its reason. The volume it came from gets deleted. The AMI it backed gets deregistered. The change it was backing up is long finished. The snapshot stays, billing $0.05 per GB-month, and nothing lists it for you. The check compares each snapshot against the live volume list and the AMI registry, so it only flags snapshots nothing depends on.
| Snapshots | Size | Monthly cost |
|---|---|---|
| Aged over 90 days | 1,400 GB | $70 |
| Orphaned from deleted volumes | 500 GB | $25 |
| In policy, keep | 1,300 GB | $65 |
| Total | 3,200 GB | $160 |
The one thing to verify before deleting is the AMI dependency. A snapshot backing a registered AMI will break that image if it is removed, so the check excludes AMI-backed snapshots. For the rest, deletion is safe and immediate, and the savings show up on the next bill. A snapshot lifecycle policy keeps the next 90 days from accumulating again: set it once and the snapshots expire on their own.
Before you act
Before deleting a snapshot, confirm it is not backing a registered AMI and its volume no longer exists. The check already excludes AMI-backed snapshots, but verify the list once by hand before the first bulk delete. For snapshots over 90 days old, confirm the retention policy is what you expect: some teams keep quarterly snapshots for compliance. Delete in small batches, confirm the bill drops, then set the lifecycle policy.
Automated Detection: Finding Orphaned EBS Snapshots Without Active Volumes or AMIs
import boto3
def audit_orphaned_ebs_snapshots(region='us-east-1'):
ec2 = boto3.client('ec2', region_name=region)
active_vols = {
v['VolumeId']
for p in ec2.get_paginator('describe_volumes').paginate()
for v in p.get('Volumes', [])
}
ami_snaps = {
bdm['Ebs']['SnapshotId']
for img in ec2.describe_images(Owners=['self']).get('Images', [])
for bdm in img.get('BlockDeviceMappings', [])
if 'SnapshotId' in bdm.get('Ebs', {})
}
orphaned = []
total_gb = 0
for p in ec2.get_paginator('describe_snapshots').paginate(OwnerIds=['self']):
for snap in p.get('Snapshots', []):
sid = snap['SnapshotId']
if snap.get('VolumeId') not in active_vols and sid not in ami_snaps:
orphaned.append(sid)
total_gb += snap.get('VolumeSize', 0)
print(f'[{region}] Orphaned snapshots: {len(orphaned)} ({total_gb} GiB, ~${total_gb * 0.05:.2f}/mo)')
return orphaned
if __name__ == '__main__':
audit_orphaned_ebs_snapshots()
What to do with the results
List every snapshot, check whether its volume still exists and whether an AMI references it, and delete the ones with neither. Set a snapshot lifecycle policy so the next 90 days of snapshots expire on their own. Check AMI dependencies before deleting anything: a snapshot backing a registered AMI will break the image.
Running ad-hoc scripts in a single account or region does not scale across enterprise AWS Organizations. Sustained cloud cost governance requires automated anomaly detection, cross-account STS role assumption, and scheduled auditing.
- 📦 Install Free Single-Account CLI:
pip install aws-finops-auditor(PyPI | GitHub) - 💼 Managing Multiple Accounts or Client Infrastructure?
- Practitioner License ($149/yr): Single-account CLI scanner, compliance exports, and dynamic bash remediation.
- Consultancy & Agency Pack ($999/yr): Automated multi-account STS role assumption, CloudFormation StackSets, and branded executive PDF showback reports.
👉 Get the AWS Cloud Cost Auditor on Gumroad
- 🆓 Try the Free Lite Edition ($0+): AWS FinOps Auditor (Lite Version) on Gumroad
Which AWS service generates the most unexpected waste in your environment? Let me know in the comments.
Top comments (0)