Cost Management Operations: Cost Explorer, Budgets, Cost Anomaly Detection, Tagging, CUR and Trusted Advisor
Where to Look
| Tool | Use |
|---|---|
| Billing and Cost Management console | Bills, payment, invoices, free tier usage, credits, tax settings |
| Cost Explorer | Visualize and analyze cost and usage up to 13 months back (and 12 months forecast). Group by service, account, tag, usage type, Region. Filter. Hourly and resource-level granularity (opt-in) |
| AWS Budgets | Set cost, usage, Savings Plans/RI coverage and utilization budgets with alerts and automated actions |
| Cost Anomaly Detection | ML finds unusual spend and sends alerts with root cause |
| Cost and Usage Report (CUR / Data Exports) | Most detailed data in S3, query with Athena or QuickSight |
| Billing Conductor / Cost Categories | Custom grouping, showback and chargeback |
| Trusted Advisor, Compute Optimizer, Cost Optimization Hub | Savings recommendations |
| Pricing Calculator | Estimate before building |
Consolidated Billing
- Organizations combines bills from many accounts: one payer account, combined volume discounts, shared Reserved Instance and Savings Plans discounts
- Member accounts can see their own cost. Management account sees all
- Use separate accounts per environment or team for clear cost boundaries
Cost Allocation Tags
- Tags must be activated in Billing as cost allocation tags (AWS-generated such as
aws:createdByand user-defined). They appear in reports only after activation and are not retroactive - Use consistent keys (
team,project,env,cost-center). Enforce with tag policies and Config - Untagged spend is the biggest allocation problem. Use Cost Categories and account structure as a fallback
AWS Budgets
bash
aws budgets create-budget --account-id 111111111111 --budget '{"BudgetName":"monthly-prod","BudgetLimit":{"Amount":"5000","Unit":"USD"},"TimeUnit":"MONTHLY","BudgetType":"COST",
"CostFilters":{"TagKeyValue":["user:env$prod"]}}' \
--notifications-with-subscribers '[{"Notification":{"NotificationType":"FORECASTED","ComparisonOperator":"GREATER_THAN","Threshold":100,"ThresholdType":"PERCENTAGE"},
"Subscribers":[{"SubscriptionType":"EMAIL","Address":"finops@example.com"}]},
{"Notification":{"NotificationType":"ACTUAL","ComparisonOperator":"GREATER_THAN","Threshold":80,"ThresholdType":"PERCENTAGE"},"Subscribers":[{"SubscriptionType":"EMAIL","Address":"finops@example.com"}]}]'
- Alert on actual (80, 100 percent) and forecasted spend (early warning)
- Budget actions can apply an IAM policy or SCP, or stop EC2/RDS instances when a threshold is crossed (needs an execution role and approval setting)
- Send alerts to SNS → Chatbot for the team channel
- Create usage budgets (hours, GB) and Reservation/Savings Plans coverage budgets
- Budgets do not stop spending by themselves unless you attach an action
Cost Anomaly Detection
- Create monitors (all services, linked accounts, cost categories, tags) and alert subscriptions (individual or summary, with an impact threshold in dollars or percent)
- Each anomaly shows root causes (account, service, Region, usage type)
- Typical finds: a forgotten GPU cluster, a runaway Lambda loop, NAT gateway data processing spike, logging flood, cross-Region replication storm
Usual Cost Drivers and Fixes
| Driver | Fix |
|---|---|
| Idle or oversized EC2/RDS | Right-size (Compute Optimizer), stop non-prod after hours, Graviton, Savings Plans |
| Unattached EBS volumes and old snapshots | Delete (with safety), DLM lifecycles, move snapshots to archive tier |
| Unused Elastic IPs, public IPv4 addresses, idle load balancers, NAT gateways | Release and delete. Use endpoints, share NAT only where needed |
| Data transfer | Out to internet is charged. Cross-AZ and cross-Region transfer charged. Use CloudFront, same-AZ designs for chatty traffic, VPC endpoints, S3 gateway endpoint, compress |
| S3 storage class | Lifecycle, Intelligent-Tiering, delete old versions and incomplete multipart uploads |
| CloudWatch Logs ingestion and storage | Reduce verbosity, set retention, use Infrequent Access class, filter before sending |
| CloudWatch custom metrics with high cardinality | Reduce dimensions |
| DynamoDB over-provisioning | On-demand or auto scaling, Standard-IA table class |
| RDS Multi-AZ in dev | Single-AZ for non-prod, stop/snapshot |
| Support plan and marketplace | Right plan for the business |
bash
aws ce get-cost-and-usage --time-period Start=2026-11-01,End=2026-11-17 --granularity DAILY --metrics UnblendedCost \
--group-by Type=DIMENSION,Key=SERVICE --query 'ResultsByTime[-1].Groups[].[Keys[0],Metrics.UnblendedCost.Amount]' --output table
aws ce get-cost-and-usage --time-period Start=2026-11-01,End=2026-11-17 --granularity MONTHLY --metrics UnblendedCost --group-by Type=TAG,Key=team
aws ce get-cost-forecast --time-period Start=2026-11-18,End=2026-11-30 --metric UNBLENDED_COST --granularity MONTHLY
sql
-- Athena on the Cost and Usage Report: top 10 resources by cost this month
SELECT line_item_resource_id, line_item_product_code, sum(line_item_unblended_cost) AS cost
FROM cur_table
WHERE month = '11' AND year = '2026' AND line_item_resource_id <> ''
GROUP BY 1, 2 ORDER BY cost DESC LIMIT 10;
Trusted Advisor
- Checks in five pillars: Cost optimization, Performance, Security, Fault tolerance, Service limits (plus operational excellence). Core checks are free. The full set needs Business, Enterprise On-Ramp or Enterprise support
- Cost examples: low utilization EC2, idle load balancers, unassociated Elastic IPs, underutilized EBS volumes, idle RDS, Savings Plans/RI recommendations
- Security examples: open security groups on specific ports, S3 bucket permissions, root account MFA, exposed access keys
- Use EventBridge for check status changes, organizational view, and Trusted Advisor Priority
Free Tier and Account Safety
- Turn on Free Tier usage alerts and billing alerts. Check Free tier page monthly. Some free tiers are 12-month, some always-free, some trial
- Set a zero spend budget for learning accounts
- Billing alarm: enable 'Receive Billing Alerts' then CloudWatch alarm on
EstimatedChargesin us-east-1 (or just use Budgets) - Protect with MFA, SCP budgets, and quotas to avoid crypto-mining abuse
Weekly Cost Routine
- Open Cost Explorer grouped by service and by tag for the last 7 days. Compare with last week
- Check anomaly alerts and the budget forecast
- Review Trusted Advisor and Compute Optimizer top recommendations
- List idle resources (unattached volumes, unused EIPs, stopped instances with volumes, old snapshots)
- Check Savings Plans/RI utilization and coverage
- Share a short report with owners and track savings
Practice Tasks
- Activate two cost allocation tags and view cost by tag after a day
- Create a monthly budget with actual and forecast alerts to SNS
- Create a Cost Anomaly monitor and subscription
- Set up CUR to S3 and an Athena table, then find the top five costly resources
- Clean up unattached EBS volumes and unused Elastic IPs in a test account
Conclusion
Use Cost Explorer for analysis, activated cost allocation tags and accounts for ownership, Budgets (actual plus forecast, optional actions) and Cost Anomaly Detection for early warnings, CUR with Athena for deep dives, and Trusted Advisor for savings. Watch data transfer, idle resources and logs, and follow a weekly routine.
Quick Summary: tools; consolidated billing; tags; Budgets; anomalies; drivers; Trusted Advisor; free tier; routine.

