Cloud Cost Allocation Tags
import { Steps } from ‘@astrojs/starlight/components’;
Cloud Cost Allocation Tags
Section titled “Cloud Cost Allocation Tags”Cost allocation tags let you break down cloud spend by team, project, environment, or any dimension that matters to your organization. Xplorr ingests tags from AWS, Azure, and GCP and uses them to attribute costs to the right owners.
How tag-based allocation works
Section titled “How tag-based allocation works”Every cloud resource can have key-value tags (e.g., team:backend, env:production, project:checkout). When Xplorr syncs your billing data, it maps each line item to its resource tags and aggregates costs by tag.
The result: a breakdown like this on the Cost Allocation page in the console:
Tag (team) | Monthly cost | % of total |
|---|---|---|
team:api | $4,200 | 38% |
team:data | $2,800 | 25% |
team:frontend | $1,100 | 10% |
team:platform | $980 | 9% |
| Untagged | $2,000 | 18% |
That untagged 18% is the problem most teams need to solve first.
Setting up tags in each provider
Section titled “Setting up tags in each provider”-
Tag your resources using the AWS console, CLI, or Terraform. Common tags:
team,env,project,cost-center. -
Activate tags for billing in the AWS Billing console:
- Go to Cost allocation tags
- Select your tags and click Activate
- Tags take 24 hours to appear in Cost Explorer data
-
Xplorr picks up activated tags during the next sync. No additional configuration in Xplorr is needed.
-
Apply tags to resource groups and individual resources via the Azure portal, CLI, or ARM/Bicep templates.
-
Azure automatically includes tags in billing data — no activation step required.
-
Xplorr ingests tags from your Azure cost management export. Make sure your export includes the
Tagscolumn (this is the default).
-
Apply labels to GCP resources (GCP calls them “labels” instead of “tags”).
-
Enable billing export to BigQuery if you haven’t already. Labels are included in the export by default.
-
Xplorr reads labels from your BigQuery billing export during sync.
Tagging policies
Section titled “Tagging policies”Xplorr lets you define tagging policies to enforce consistency across your organization.
Go to Settings → Tagging Policies and configure:
- Required tags — specify which tag keys must be present on every resource (e.g.,
team,env). Resources missing required tags are flagged as violations. - Allowed values — restrict a tag key to specific values (e.g.,
envcan only beproduction,staging,development). - Tag format rules — enforce naming conventions like lowercase-only or no spaces.
Viewing violations
Section titled “Viewing violations”The Tagging Violations tab shows all resources that don’t comply with your policies:
VIOLATION: 47 resources missing required tag "team" - 12 EC2 instances in us-east-1 (account: prod-aws) - 8 S3 buckets (account: prod-aws) - 15 RDS snapshots (account: analytics-aws) - 12 Lambda functions (account: prod-aws)Each violation links to the resource in your cloud provider’s console so you can fix it.
Tracking untagged costs
Section titled “Tracking untagged costs”Untagged resources are the blind spot in cost allocation. Xplorr tracks them explicitly:
- The Untagged row in the allocation table shows total spend on resources with no tags (or missing the tag key you’re grouping by).
- You can drill into untagged costs to see which services and accounts contribute most.
- The Untagged Cost Trend chart shows whether your tagging coverage is improving or degrading over time.
A realistic target: get untagged costs below 5% of total spend. Most teams start at 15–30%.
Step-by-step: setting up cost allocation
Section titled “Step-by-step: setting up cost allocation”-
Decide on your tag taxonomy. Start simple — most teams need just three tags:
team— which team owns this resourceenv— production, staging, developmentproject— which project or product
-
Tag existing resources. Use AWS Tag Editor, Azure Resource Graph, or GCP Asset Inventory to bulk-tag resources.
-
Create a tagging policy in Xplorr to enforce the tags going forward.
-
Open Cost Allocation in the console. Select the tag key to group by (e.g.,
team). Review the breakdown. -
Share the allocation report with team leads. Use the Export button to download as CSV or PDF for finance reviews.
Real-world example
Section titled “Real-world example”An infrastructure team with $11,080/month in AWS spend set up tag-based allocation:
Tag (team) | Cost | % |
|---|---|---|
team:api | $4,200 | 38% |
team:data | $2,800 | 25% |
team:frontend | $1,100 | 10% |
team:platform | $980 | 9% |
| Untagged | $2,000 | 18% |
After investigating untagged costs, they found:
- $800 in orphaned EBS snapshots (no owner)
- $600 in a forgotten test cluster running in us-west-2
- $400 in NAT Gateway charges for a decommissioned VPC
- $200 in CloudWatch log storage with no retention policy
Tagging those resources and cleaning up waste reduced untagged costs to 3% within two weeks.
Common mistakes
Section titled “Common mistakes”- Tagging at the account level but not the resource level. Account-level attribution is a rough cut. Resource-level tags give you the precision to do real chargeback.
- Using inconsistent tag values.
team:Backend,team:backend,team:back-endare three different values. Define allowed values and enforce them with a policy. - Not tagging shared resources. Load balancers, NAT Gateways, and VPCs serve multiple teams. Allocate them proportionally or tag them as
team:shared-infraso they don’t show up as untagged.
Can I group by multiple tags at once?
Yes. The allocation view supports nested grouping — e.g., group by team, then by env within each team.
How far back does tag-based allocation go? It depends on your cloud provider. AWS Cost Explorer provides tag data for the past 12 months. Azure and GCP vary. Xplorr shows allocation data for as far back as your billing data goes.
Can I set up cost allocation without cloud-side tags? Partially. You can use account-level or service-level grouping in Xplorr without tags. But for team-level or project-level allocation, you need tags on the resources themselves.
Does Xplorr support AWS cost categories? Yes. If you have AWS cost categories configured, Xplorr imports them as an additional grouping dimension alongside tags.
Key takeaways
Section titled “Key takeaways”- Start with three tags:
team,env,project. You can always add more later. - Track untagged costs aggressively — they represent spend that no one is accountable for.
- Enforce tagging policies to prevent drift. It’s much easier to tag resources at creation time than to retrofit tags later.
- Use the allocation breakdown in team reviews to drive ownership of cloud costs.