AWS Cost Allocation Tags: A Tagging Strategy
Define tagging standards and build chargeback reports.
Tagging: The Foundation of Cost Governance
Without cost allocation tags, your AWS bill is a single number. With them, you can break down costs by team, environment, project, and customer — enabling chargeback, showback, and informed optimization decisions.
Recommended Tagging Schema
| Tag Key | Example Values | Purpose |
|---|---|---|
Environment | production, staging, development, sandbox | Cost split by environment |
Team | platform, backend, data, frontend | Chargeback to teams |
Project | customer-portal, data-pipeline, api-v2 | Project-level cost tracking |
CostCenter | CC-1001, CC-2003 | Finance/accounting integration |
Owner | [email protected] | Accountability and cleanup |
ManagedBy | terraform, manual, cloudformation | IaC coverage tracking |
Activating Cost Allocation Tags
- Go to AWS Billing → Cost Allocation Tags
- Activate your user-defined tags (they appear after 24 hours)
- Also activate AWS-generated tags like
aws:createdBy
Note: Tags only affect cost reports going forward. They don't retroactively categorize past spending.
Enforcing Tags with SCPs and AWS Config
# AWS Config rule: require 'Environment' tag on EC2 instances
aws configservice put-config-rule --config-rule '{
"ConfigRuleName": "required-tags-ec2",
"Source": {
"Owner": "AWS",
"SourceIdentifier": "REQUIRED_TAGS"
},
"InputParameters": "{\"tag1Key\":\"Environment\",\"tag2Key\":\"Team\"}",
"Scope": {"ComplianceResourceTypes": ["AWS::EC2::Instance"]}
}'
Building Chargeback Reports
Once tags are active, use Cost Explorer to create reports grouped by tag:
- Group by
Teamtag → shows which team spends the most - Filter by
Environment=production→ isolate production costs - Export to CSV for finance team reporting
Handling Untagged Resources
Use AWS Resource Groups Tag Editor to find and bulk-tag untagged resources. Run a weekly report of untagged resources and assign owners to fix them. Target 95%+ tag coverage for meaningful cost reports.
Eazy SaaS Tip: Start with just 3 tags:
Environment,Team, andProject. Enforce them with AWS Config. Once compliance reaches 90%+, add more specific tags likeCostCenterandOwner.