
How to Never Get a Surprise AWS Bill: 7 Settings Every Student Should Turn On Today
A practical checklist of free AWS settings and habits that protect students and beginners from unexpected charges, with console steps and a Terraform example.
Almost every AWS beginner has the same fear: "What if I forget something running and wake up to a huge bill?"
The good news: AWS gives you free tools to prevent exactly that. Here are 7 things every student should set up today — it takes about 15 minutes.
1. Enable MFA on your root account
This isn't about cost directly, but a compromised account is one of the most common causes of truly scary bills (think crypto miners running on expensive instances).
- Sign in as root
- Go to IAM → Security credentials
- Assign an MFA device (an authenticator app is fine)
Then use an IAM user or IAM Identity Center for daily work — don't use root.
2. Create a budget with email alerts
Billing and Cost Management → Budgets → Create budget
- Choose Use a template → Monthly cost budget (or Zero spend budget)
- Set an amount you're comfortable with, e.g. $5
- Add your email
A zero spend budget alerts you as soon as you spend even $0.01 — perfect if you want to stay fully free.
Prefer code? Here's the same thing in Terraform:
resource "aws_budgets_budget" "monthly" { name = "monthly-student-budget" budget_type = "COST" limit_amount = "5" limit_unit = "USD" time_unit = "MONTHLY"
notification { comparison_operator = "GREATER_THAN" threshold = 80 threshold_type = "PERCENTAGE" notification_type = "FORECASTED" subscriber_email_addresses = ["you@example.com"] }}The
FORECASTED type warns you before you actually hit the limit.3. Turn on Free Tier usage alerts
Billing and Cost Management → Billing preferences → Alert preferences
Enable AWS Free Tier alerts. You'll get an email when you're close to exceeding Free Tier limits on a service.
4. Turn on Cost Anomaly Detection
Billing and Cost Management → Cost Anomaly Detection → Create monitor
It uses machine learning to spot unusual spending (e.g. a service suddenly costing 10× more than normal) and emails you. It takes about 2 minutes to set up.
5. Know the "silent" cost killers
These resources charge you per hour even when you're not actively using them:
Resource | Why it surprises people |
|---|---|
NAT Gateway | Charged hourly + per GB, even with zero traffic |
Public IPv4 addresses | AWS charges for public IPv4 addresses, including Elastic IPs |
EBS volumes & snapshots | Can remain after you terminate an instance |
RDS instances | Stopped instances automatically restart after 7 days |
Load Balancers | Hourly charge even with no traffic |
When you finish a lab or tutorial, check for these first.
6. Check ALL regions
The classic mistake: you create something in
us-east-1 , then look at the console in eu-central-1 and think everything is deleted.Use Billing → Bills to see charges broken down by region and service. You can also use AWS Resource Explorer to search for resources across regions.
7. Use Infrastructure as Code and destroy when done
If you create lab resources with Terraform (or CloudFormation), cleanup is one command:
terraform destroyNo forgotten security groups, volumes, or IP addresses left behind.
Bonus: a 30-second end-of-day habit
Before closing your laptop after an AWS session:
- Open Cost Explorer or the Billing home page
- Check today's spend
- If anything looks odd, investigate now — not at the end of the month
Wrapping up
None of these settings are complicated, and together they turn AWS from "scary" into "safe to experiment." Set them up once, and you can focus on learning instead of worrying.
Have you ever had a surprise AWS bill? What happened? Share your story in the comments 👇 — it might save someone else.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article