AWS Builder Center
8 hidden AWS charges that surprise students (and fixes)

8 hidden AWS charges that surprise students (and fixes)

Public IPs, NAT Gateways, orphaned EBS volumes, logs that never expire: eight AWS charges students miss, what each costs, and how to avoid it.

Dev
Most surprise AWS bills don't come from the service you were learning. They come from something that kept running, or kept existing, after the tutorial ended. Here are eight charges that catch students out, what each one costs, and how to avoid it. Prices are us-east-1 list prices; other Regions differ.
Hidden AWS charges cheat sheet


1. Public IPv4 addresses

Since February 2024, every public IPv4 address costs $0.005 per hour, whether it's attached to something or sitting idle. That's about $3.65 a month per address. An EC2 instance with a public IP, a load balancer and a forgotten Elastic IP all count.
Fix: Release Elastic IPs you're not using. Don't auto-assign public IPs to instances that don't need them; use Session Manager or EC2 Instance Connect Endpoint to get in instead. Public IP Insights (in VPC IPAM, free tier) lists every public IPv4 in your account.

2. NAT Gateways

A NAT Gateway costs $0.045 per hour (about $32.85 a month) from the moment it exists, plus $0.045 per GB it processes. No traffic doesn't mean no bill. The VPC console's "VPC and more" wizard can create one or more for you, so check that option.
Fix: Delete NAT Gateways when the lab ends (and release their Elastic IPs). For S3 and DynamoDB traffic from private subnets, use gateway VPC endpoints, which are free.

3. EBS volumes and snapshots that outlive the instance

Stopping an EC2 instance stops compute charges, but its EBS volumes keep billing. Terminating it deletes the root volume by default, but extra volumes you attached may stay behind. Snapshots and AMIs you created bill until you delete them.
Fix: After terminating, open EC2 → Volumes and look for volumes in the "available" state. Then check Snapshots and AMIs.

4. "Stopped" RDS databases

You can stop an RDS instance to save money, but RDS automatically starts it again after 7 days. Students who stop a database "for now" often find it running a month later.
Fix: If you're done, take a final snapshot and delete the instance. Restore from the snapshot when you need it again.

5. CloudWatch Logs that never expire

New log groups, including the ones Lambda creates, default to Never expire. Logs pile up quietly, and storage is billed after the free tier.
Fix: Set a retention period (7 or 14 days is plenty for learning) on every log group. From the CLI:
aws logs put-retention-policy --log-group-name /aws/lambda/my-function --retention-in-days 14

6. Invisible S3 storage

Two kinds of S3 storage don't show up when you browse a bucket: incomplete multipart uploads and old object versions in a versioned bucket. Both are billed as storage.
Fix: Add a lifecycle rule that aborts incomplete multipart uploads after 7 days, and expire noncurrent versions you don't need.

7. Load balancers with no traffic

Application and Network Load Balancers bill per hour whether or not they serve requests, plus a usage charge. A load balancer left over from a tutorial keeps costing money long after the app behind it is gone.
Fix: Delete load balancers and their target groups when you tear down a project. If you used CloudFormation, CDK or Amplify, delete the stack instead of the pieces.

8. Resources in a Region you forgot

Everything above is easy to miss when it's in a Region you visited once. The console only shows the Region you're in.
Fix: Open Billing and Cost Management → Bills and expand charges by Region and service. Use Resource Explorer or EC2 Global View to find what's running where.

A 10-minute cleanup checklist

  • [ ] No unused Elastic IPs
  • [ ] No NAT Gateways left from labs
  • [ ] No "available" EBS volumes, old snapshots or AMIs
  • [ ] No stopped RDS instances you're not using
  • [ ] Retention set on every log group
  • [ ] Lifecycle rule for incomplete multipart uploads
  • [ ] No idle load balancers
  • [ ] Checked charges by Region on the Bills page
  • [ ] A zero-spend budget, so the next surprise is an email, not an invoice
Which of these has bitten you, or someone in your class? And which charge would you add as number nine?
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article