Stop 03 · AWS Account Setup & ToolsTopics · 3/8

Setting Up AWS Budgets & Billing Alerts

Part of the AWS Roadmap

In short

Almost every scary AWS bill story has the same ending: "I didn't notice for three weeks." A budget alert turns weeks into hours, and it takes five minutes to set up.

AWS Budgets lets you set a cost limit and get email alerts when actual or forecasted spend crosses a threshold. It is the single best protection against surprise bills while learning.

The jaadu watches a coin jar fill up on a desk while a little bell mounted on the jar starts ringing at a marked line.

Think of it like this

Your bank's spending SMS

Your bank texts you each time money leaves your account, so a strange charge never goes unnoticed. AWS Budgets is that SMS for your cloud bill: tell it a limit, and it emails you when actual or forecast spend crosses it.

Watch it happen

How a budget alert reaches you

Your resources
Billing data
AWS Budgets
Your inbox

Usage recorded

1/4A NAT gateway left running from a lab keeps adding charges every hour.

The big ideas

What you need to know

Zero spend budget

The console template alerts you as soon as spend goes above USD 0.01. Perfect for a learning account.

Actual and forecast

Actual alerts fire after money is spent. Forecast alerts warn you that you are heading past the limit.

Alerts do not stop spend

A budget only notifies by default. Budget actions can apply restrictions, but you still need to delete what is running.

Not real time

Billing data updates a few times a day, so alerts can lag by hours. Delete lab resources when you finish anyway.

See it in code

Walk through the code

bash
1# budget.json2# {"BudgetName":"monthly-5-usd","BudgetType":"COST","TimeUnit":"MONTHLY",3#  "BudgetLimit":{"Amount":"5","Unit":"USD"}}4 5# alerts.json6# [{"Notification":{"NotificationType":"FORECASTED","ComparisonOperator":"GREATER_THAN",7#   "Threshold":80,"ThresholdType":"PERCENTAGE"},8#   "Subscribers":[{"SubscriptionType":"EMAIL","Address":"riya@example.in"}]}]9 10ACCOUNT_ID=$(aws sts get-caller-identity --query Account --output text)11 12aws budgets create-budget \13  --account-id "$ACCOUNT_ID" \14  --budget file://budget.json \15  --notifications-with-subscribers file://alerts.json

1/4The budget itself: a monthly cost limit of 5 US dollars.

A USD 5 monthly cost budget that emails you when forecast spend passes 80 percent of the limit.

Save yourself the pain

Common mistakes

Oops

Thinking a budget will automatically shut down resources at the limit.

Do this instead

By default it only sends alerts. You must act on them, or configure budget actions deliberately.

Oops

Sending alerts to an inbox nobody reads.

Do this instead

Use an email you check daily, or add an Amazon SNS topic that reaches a team chat.

Your mission

Set two safety nets

~15 min

Quick check

Your budget alert fires. What does AWS do to your running resources by default?

Go deeper

  1. 1Create a monthly cost budget with alerts at 50%, 80% and 100% of a small amount you are comfortable with.
  2. 2Enable Free Tier usage alerts in Billing preferences.
  3. 3Open Cost Explorer once a week to see which services are costing money.

More topics at this stop

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.

Download
InsideEdge