
You Deleted Your AWS Project. These 6 Things Are Still Billing You.
Terminating an instance doesn't clean up everything around it. Here's what can keep charging you after a project is gone, what it costs, and a script that finds it in every Region.
Terminating your EC2 instance feels like the end of a project. Your bill doesn't see it that way.
AWS deletes exactly what you ask it to delete. Everything created around that instance can stay behind, and some of it charges by the hour whether or not anything is using it.
A forgotten NAT gateway, load balancer, and Elastic IP alone come to about $53 a month with nothing running. Here are the six leftovers to look for.
1. NAT gateways: about $33/month
This is usually the biggest one. A NAT gateway charges $0.045 per hour even with no traffic, and it stays in your VPC after your instances are gone.
Fix: Delete it in the VPC console, then release its Elastic IP. Deleting the gateway does not release the address.
2. Load balancers: about $16/month
Terminating the instances behind an Application Load Balancer doesn't remove the load balancer. It keeps charging $0.0225 per hour.
Fix: Delete it under EC2 > Load Balancers.
3. Elastic IPs: about $3.65/month each
Every public IPv4 address costs $0.005 per hour, and an idle address costs the same as one in use.
Fix: Release it. Disassociating is not enough.
4. EBS volumes: about $0.08/GB-month
Root volumes are usually deleted with the instance. Data volumes you attached through the console are preserved by default, and preserved volumes keep charging.
Fix: Look for volumes with the status
available and delete the ones you don't need.5. Snapshots: about $0.05/GB-month
EBS snapshots stay after the volume is gone. RDS also keeps manual snapshots and the final snapshot it offers to take when you delete a database, and they bill until you delete them.
Fix: Keep the ones you would really restore from and delete the rest.
6. CloudWatch logs: small, but they never expire
Logs are stored indefinitely by default, and deleting a Lambda function doesn't delete its log group. The cost is usually small, but it grows quietly.
Fix: Delete old log groups, and set a retention period on the ones you keep.
Find them all in one go
Most console pages show one Region at a time, which is how a test project in another Region can stay hidden for months. This read-only script checks every Region enabled on your account and prints only what it finds:
check() { out=$(aws "$@" --region "$r" --output text) [ -n "$out" ] && echo "[$r] $1 $2: $out"}
for r in $(aws ec2 describe-regions --query "Regions[].RegionName" --output text); do check ec2 describe-nat-gateways --filter Name=state,Values=available --query "NatGateways[].NatGatewayId" check elbv2 describe-load-balancers --query "LoadBalancers[].LoadBalancerName" check ec2 describe-addresses --query "Addresses[?AssociationId==null].PublicIp" check ec2 describe-volumes --filters Name=status,Values=available --query "Volumes[].VolumeId" check ec2 describe-snapshots --owner-ids self --query "Snapshots[].SnapshotId" check rds describe-db-snapshots --snapshot-type manual --query "DBSnapshots[].DBSnapshotIdentifier" check logs describe-log-groups --query "logGroups[?!retentionInDays].logGroupName"doneIt deletes nothing, so check each result before you remove it. Some of those snapshots or logs may be worth keeping.
Prices are for US East and vary by Region, so check the pricing pages for yours.
Make cleanup part of the project
Before you start your next project, add a tag like
project=my-app to everything you create. When you're done, you can search for that tag in Tag Editor and see what's left in one list.What's the most surprising thing you've found on your AWS bill? Share it in the comments so the next person can avoid it.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article