Cost Management Tools and Governance: Cost Explorer, Budgets, Cost Anomaly Detection, Tagging and FinOps Practice
FinOps in One Paragraph
FinOps is the practice of bringing finance, engineering and business together to manage cloud spend. Its loop is: Inform (show who spends what), Optimize (remove waste, use commitments), Operate (set guardrails and review regularly).
Tool Overview
| Tool | What it does |
| Cost Explorer | Interactive charts of cost and usage by service, account, tag, Region; forecasts; Savings Plans and RI recommendations and coverage/utilization; resource-level data for the last 14 days (optional) |
| AWS Budgets | Set cost, usage, Savings Plans or RI coverage/utilization budgets with alerts and budget actions (apply an IAM or SCP policy, stop instances) |
| Cost Anomaly Detection | Machine learning finds unusual spend and sends alerts with root causes |
| Cost and Usage Report (CUR / Data Exports) | The most detailed billing data, delivered to S3, query with Athena, QuickSight or Redshift |
| Cost allocation tags and Cost Categories | Group spend by team, project or business rules |
| Billing Conductor | Custom pricing views and chargeback rates for resellers and internal groups |
| Compute Optimizer / Trusted Advisor | Right-sizing and idle resource recommendations |
| Pricing Calculator | Estimates before you build |
Cost Explorer: Questions It Answers
- Which service or account increased last month?
- How much does team X (tag) cost?
- What will we spend this month (forecast)?
- What is our Savings Plan coverage and utilization?
- Which linked account is the biggest?
bash
aws ce get-cost-and-usage --time-period Start=2026-10-01,End=2026-11-01 --granularity MONTHLY --metrics UnblendedCost \
--group-by Type=DIMENSION,Key=SERVICE --query 'ResultsByTime[0].Groups[?Metrics.UnblendedCost.Amount>`10`].[Keys[0],Metrics.UnblendedCost.Amount]' --output table
aws ce get-cost-and-usage --time-period Start=2026-10-01,End=2026-11-01 --granularity MONTHLY --metrics UnblendedCost --group-by Type=TAG,Key=Project
aws ce get-cost-forecast --time-period Start=2026-11-17,End=2026-12-01 --metric UNBLENDED_COST --granularity MONTHLY
aws ce get-savings-plans-purchase-recommendation --savings-plans-type COMPUTE_SP --term-in-years ONE_YEAR --payment-option NO_UPFRONT --lookback-period-in-days THIRTY_DAYS
| Cost view | Meaning |
| Unblended | Costs as charged per usage (default) |
| Blended | Average rate across the organization's accounts |
| Amortized | Spreads upfront RI/Savings Plan fees across the term. Best for team reports |
| Net | After discounts |
AWS Budgets
json
{
"BudgetName": "team-shop-monthly",
"BudgetLimit": {"Amount": "2000", "Unit": "USD"},
"TimeUnit": "MONTHLY",
"BudgetType": "COST",
"CostFilters": {"TagKeyValue": ["user:Project$shop"]}
}
- Types: Cost, Usage, Savings Plans utilization/coverage, RI utilization/coverage
- Alerts on actual and forecasted spend (for example 50, 80, 100 percent) by email, SNS or chat
- Budget actions can automatically attach a restrictive IAM or SCP policy or stop EC2/RDS when a limit is crossed. Good for sandbox accounts
- Alerts are not hard limits: AWS does not stop services by itself unless you configure an action
Cost Anomaly Detection
- Create monitors by service, linked account, cost category or tag, then subscriptions with a threshold (for example 100 USD impact) and an SNS topic or email
- Finds things like a forgotten GPU cluster or a Lambda in a loop within a day, not at month end
- Shows root cause (account, Region, usage type)
Cost Allocation Tags
- Define a tag standard:
Project, Owner, Environment, CostCenter
- Tag at creation (CloudFormation/Terraform default tags, tag policies, SCP deny without tag)
- In Billing → Cost allocation tags, activate the tags (up to 24 hours to appear)
- Use Cost Categories to group by rules (for example all accounts of OU
Retail plus tag Project=web)
- Report untagged spend monthly and fix it
hcl
provider "aws" {
region = "ap-south-1"
default_tags {
tags = {
Project = "shop"
Owner = "team-shop"
Environment = "prod"
CostCenter = "1234"
}
}
}
Not everything can be tagged Shared costs (support, some data transfer, shared networking) need allocation rules: split by usage share, headcount or equal parts. Billing Conductor and Cost Categories help with split charges.
Cost and Usage Report + Athena
sql
SELECT line_item_product_code AS service,
resource_tags_user_project AS project,
SUM(line_item_unblended_cost) AS cost
FROM cur_database.cur_table
WHERE year = '2026' AND month = '11'
GROUP BY 1, 2
ORDER BY cost DESC
LIMIT 20;
Showback vs Chargeback
| Model | Meaning |
| Showback | Show each team what they cost. No money moves. Builds awareness |
| Chargeback | Cost is actually charged to the team's budget |
Waste Hunting List
| Waste | How to find | Fix |
| Idle or oversized EC2/RDS | Compute Optimizer, CloudWatch CPU | Stop, resize, Graviton, schedule off-hours |
| Unattached EBS volumes and old snapshots | Trusted Advisor, describe-volumes --filters Name=status,Values=available | Delete, lifecycle (DLM) |
| Idle load balancers, unused Elastic IPs / public IPv4 | Trusted Advisor | Delete or release |
| NAT Gateway data processing | Cost Explorer usage type NatGateway-Bytes | Gateway endpoints, interface endpoints, IPv6 |
| S3 in expensive classes, old versions, incomplete uploads | S3 Storage Lens | Lifecycle, Intelligent-Tiering |
| CloudWatch Logs without retention | Log group list | Set retention, filter noisy logs |
| Dev and test running 24x7 | Tags + schedule | Instance Scheduler or EventBridge Scheduler to stop at night |
| Data transfer between Regions/AZs | CUR usage type | Redesign or co-locate |
| Unused commitments | Savings Plans utilization | Adjust purchases |
bash
aws ec2 describe-volumes --filters Name=status,Values=available --query 'Volumes[].[VolumeId,Size,CreateTime]' --output table
aws ec2 describe-addresses --query 'Addresses[?AssociationId==null].[PublicIp,AllocationId]' --output table
aws logs describe-log-groups --query 'logGroups[?retentionInDays==null].[logGroupName,storedBytes]' --output table
A Monthly FinOps Routine
- Review cost vs budget and forecast per team
- Review anomalies and explain them
- Check untagged resources and fix
- Review coverage and utilization of Savings Plans/RIs, buy or adjust
- Act on top 5 recommendations (right-size, delete, schedule)
- Share a short report and celebrate savings
Practice Tasks
- Open Cost Explorer and group last month by service, then by linked account
- Create a monthly budget with 80 and 100 percent alerts and one budget action for a sandbox account
- Create a cost anomaly monitor and an SNS subscription
- Activate a tag as a cost allocation tag and view cost by it after 24 hours
- Find three kinds of waste in your lab account with the CLI commands above
Conclusion
Use Cost Explorer to see and forecast spend, Budgets with alerts and actions to control it, Cost Anomaly Detection to catch surprises early, activated cost allocation tags and cost categories to assign cost to teams, CUR with Athena for deep analysis, and a regular FinOps routine to remove waste and tune commitments.
Quick Summary: Cost Explorer CLI + views; Budgets types + actions; anomaly detection; tags + default_tags; CUR Athena; showback/chargeback; waste hunting table; monthly routine.