Budgets, Cost and Usage Report and cost allocation tags
AWS Budgets for cost and usage alerts and budget actions, the Cost and Usage Report and Data Exports for detailed billing data, and cost allocation tags and cost categories for tracking spend by team.
Not in the course slides
AWS Budgets, the Cost and Usage Report and cost allocation tags are on the exam guide's list but not in the course slides. This page is written from the AWS documentation.
AWS Budgets
AWS Budgets sets custom budgets and sends an alert when spend exceeds them, or is forecasted to.
- Budget types:
- cost budgets: how much is spent;
- usage budgets: how much of a service is used (hours, GB…);
- RI and Savings Plans utilization budgets: are the commitments being used?
- RI and Savings Plans coverage budgets: how much of the usage they cover.
- Periods: daily, monthly, quarterly, yearly, or a custom date range; fixed or growing amounts.
- Alerts on actual or forecasted spend, by email or SNS (and chat through Amazon Q Developer in chat apps).
- Budget actions: when a threshold is reached, automatically (or after approval):
- apply an IAM policy or an SCP (for example, deny launching new instances);
- stop chosen EC2 or RDS instances.
- Filter by service, account, tag, Region…
- Pricing: monitoring budgets is free; the first 2 budgets with actions are free, then $0.10 a day each.
Cost and Usage Report
The AWS Cost and Usage Report (CUR) contains the most comprehensive set of cost and usage data available.
- Delivered to an S3 bucket the customer owns, updated at least once a day.
- Breaks costs down by the hour, day or month, by product and resource, and by tags the customer defines.
- Integrates with Athena, Redshift and QuickSight for analysis.
- Today it's created through Data Exports, where CUR 2.0 is the recommended format (Parquet or CSV), alongside FOCUS-format exports and Cost Optimization Hub recommendations.
Cost allocation tags
- Cost allocation tags show costs by tag (team, project, environment) in Cost Explorer and the CUR.
- Two types:
- AWS-generated tags: created by AWS, with the
aws:prefix (for exampleaws:createdBy); - user-defined tags: the customer's own tags (shown with the
user:prefix in reports).
- AWS-generated tags: created by AWS, with the
- They must be activated in the Billing and Cost Management console (in the management account) before they appear in reports. They only apply to costs after activation.
- Cost categories group costs with rules (for example, accounts 1–3 and tag
team=web→ "Web team"). - A tag policy in AWS Organizations helps keep tags consistent across accounts.
Real-world examples
- A start-up sets a $500 monthly budget with an alert at 80% forecasted, and a budget action that applies an SCP denying new EC2 launches in the sandbox account at 100%.
- A company tags every resource with
cost-center, activates the tag, and queries the CUR with Athena each month to charge each department.
Exam tips
- "Alert when cost exceeds or is forecast to exceed X" → AWS Budgets.
- "Automatically stop instances or block launches when the budget is exceeded" → budget actions.
- "Track if Reserved Instances or Savings Plans are being used" → RI/SP utilization budgets.
- "Most granular billing data, hourly, per resource, query with Athena" → Cost and Usage Report.
- "Costs per department or project" → cost allocation tags (activated) or cost categories.
Common traps
- "Tags appear in billing as soon as you add them." They must be activated as cost allocation tags first.
- "Budgets stop spending by themselves." Only when budget actions are configured; otherwise they just alert.
Check yourself
Activate Project as a user-defined cost allocation tag in the Billing and Cost Management console of the management account; costs from then on can be grouped by it.
An AWS Budgets cost budget of $200 with a budget action that applies an SCP (or IAM policy) denying resource creation when the threshold is reached.
AWS documentation
Cost Explorer and Cost Anomaly Detection
AWS Cost Explorer for visualizing, forecasting and optimizing costs, Savings Plans and rightsizing recommendations, and AWS Cost Anomaly Detection for catching unusual spend with machine learning.
Instance Scheduler on AWS
The Instance Scheduler on AWS solution for automatically stopping and starting EC2 and RDS instances on a schedule to cut costs, and how it works.