Difficulty: Beginner
How do AWS Budgets help you control cloud costs? Walk through how you would set one up for a team or a personal account.
AWS Budgets lets you set a cost, usage, or commitment budget and get notified by email, SNS or chat when actual or forecasted spend crosses a threshold you choose. With budget actions it can also respond automatically, for example by applying a restrictive IAM policy or stopping EC2 and RDS instances, which turns a passive alert into a guardrail.
| Budget type | Tracks | Example |
|---|---|---|
| Cost budget | Spend in USD (or your billing currency) | Team account must stay under 500 USD a month |
| Usage budget | Units of a service | Under 750 EC2 hours or 100 GB of S3 storage |
| Savings Plans / RI utilization | How much of your commitment you use | Alert if utilization drops below 90% |
| Savings Plans / RI coverage | How much usage is covered by commitments | Alert if coverage falls below 70% |
Budgets can be monthly, quarterly or yearly, fixed or planned per period, and filtered by service, linked account, region, tag or cost category. The zero spend budget template is perfect for students: it emails you the moment anything beyond the free tier costs money.
A sensible setup: forecasted alert at 100%, actual alerts at 80% and 100%. Each alert can notify email addresses and an SNS topic, which can fan out to Slack or Amazon Chime through AWS Chatbot (now part of Amazon Q Developer in chat applications).
Budget actions run when a threshold is crossed, either automatically or after approval:
This is ideal for sandbox accounts: once a hackathon team hits its limit, new resource creation is blocked.
For a student account, the minimum safe setup is: MFA on root, a zero spend budget, a monthly cost budget of a few dollars with forecasted alerts, and Cost Anomaly Detection turned on.
aws budgets create-budget \
--account-id 123456789012 \
--budget '{
"BudgetName": "team-monthly",
"BudgetLimit": { "Amount": "200", "Unit": "USD" },
"TimeUnit": "MONTHLY",
"BudgetType": "COST"
}' \
--notifications-with-subscribers '[
{
"Notification": {
"NotificationType": "FORECASTED",
"ComparisonOperator": "GREATER_THAN",
"Threshold": 100,
"ThresholdType": "PERCENTAGE"
},
"Subscribers": [
{ "SubscriptionType": "EMAIL", "Address": "team-lead@example.com" }
]
},
{
"Notification": {
"NotificationType": "ACTUAL",
"ComparisonOperator": "GREATER_THAN",
"Threshold": 80,
"ThresholdType": "PERCENTAGE"
},
"Subscribers": [
{ "SubscriptionType": "SNS", "Address": "arn:aws:sns:us-east-1:123456789012:cost-alerts" }
]
}
]'
This creates a 200 USD monthly budget that emails the team lead when the month is forecast to exceed the limit, and posts to an SNS topic once actual spend passes 80%.
AWS Budgets, Cost Alerts, Forecasted Spend, Budget Actions, FinOps