Cost Allocation Tags
Cost Allocation Tags
Cost Allocation Tags allow you to organize and track AWS costs using custom metadata applied to your resources. This enables granular cost analysis by team, project, environment, or any custom dimension.
What are Cost Allocation Tags?
Cost Allocation Tags are AWS resource tags that have been activated for cost tracking. Once activated, costs associated with tagged resources appear in your billing data and can be analyzed in SkySaver Cost Explorer.
Tag Types
| Type | Description | Example |
|---|---|---|
| AWS-Generated | Automatically created by AWS | aws:createdBy |
| User-Defined | Created by you | Environment, Team, Project |
Enabling Cost Allocation Tags
Tags must be activated in AWS before they appear in cost data:
- Go to AWS Billing Console
- Navigate to Cost Allocation Tags
- Select the User-Defined Cost Allocation Tags tab
- Find your tags in the list
- Select tags to activate
- Click Activate
Activation Time
- Tags appear in billing data after 24-48 hours
- Historical data is not retroactively tagged
- Future costs will include tag data
Common Cost Allocation Tags
| Tag Key | Purpose | Example Values |
|---|---|---|
Environment | Track by environment | production, staging, development |
Team | Track by team | engineering, marketing, data |
Project | Track by project | webapp, mobile-app, analytics |
CostCenter | Financial tracking | 10001, 10002 |
Owner | Resource ownership | alice@example.com |
Application | Application name | billing-service, user-service |
Using Tags in Cost Explorer
Once tags are activated, use them in SkySaver:
Filter by Tag
- Open Cost Explorer > Query Builder
- Add a filter: Tag:Environment = production
- Run query to see only production costs
Group by Tag
- Open Cost Explorer > Query Builder
- Set Group By: Tag:Team
- Run query to see costs per team
Tagging Strategy
Best Practices
- Be consistent - Use the same tag keys across all resources
- Define standards - Document required tags and valid values
- Automate tagging - Use AWS Config rules or Infrastructure as Code
- Keep it simple - Start with 3-5 essential tags
- Review regularly - Audit for untagged resources
Required Tags Example
| Tag Key | Required | Valid Values |
|---|---|---|
Environment | Yes | production, staging, dev |
Team | Yes | Any team name |
CostCenter | Yes | Valid cost center codes |
Project | Recommended | Project names |
Untagged Resources
Untagged resources appear as:
- Blank values in tag-based reports
- “No tag” category in groupings
Finding Untagged Resources
- Query costs grouped by tag
- Look for resources with blank/missing tag values
- Add tags to those resources
Tag Inheritance
Some AWS resources support tag inheritance:
| Parent Resource | Child Resources | Inheritance |
|---|---|---|
| Auto Scaling Group | EC2 Instances | Configurable |
| CloudFormation Stack | All resources | Configurable |
| ECS Cluster | Tasks | Partial |
Cost Allocation Reports
Generate tag-based reports:
- Cost Explorer - Interactive analysis
- Query Builder - Custom queries
- Export - Download CSV for further analysis
Sample Tag-Based Report
| Team | Service | Monthly Cost | % of Total |
|---|---|---|---|
| Engineering | EC2 | $5,234.56 | 45% |
| Engineering | RDS | $2,123.45 | 18% |
| Data | S3 | $1,567.89 | 13% |
| Marketing | CloudFront | $890.12 | 8% |
Troubleshooting
| Issue | Cause | Solution |
|---|---|---|
| Tag not appearing | Not activated | Activate in AWS Billing Console |
| Missing data | Activation delay | Wait 24-48 hours |
| Blank values | Resources untagged | Add tags to resources |
| Inconsistent data | Tag key variations | Standardize tag keys |
| Old data untagged | No retroactive tagging | Only future data tagged |
Integration with SkySaver Tags
The SkySaverSchedule tag used for resource scheduling can also be:
- Activated as a cost allocation tag
- Used to track costs of scheduled resources
- Analyzed alongside other tags
Related Topics
- Query Builder - Using tags in queries
- Tagging Resources - SkySaver scheduling tags
- Cost Explorer Overview - Full feature overview