Tagging Strategy for Cost Allocation
Part of the AWS Roadmap
In short
The bill says you spent a lot on EC2 this month. Which project? Which team? Which forgotten experiment? Without tags, nobody can tell. With a tagging strategy, the answer is one filter away.
Tags are key-value labels on resources, such as Project=capstone or Environment=dev. Activating them as cost allocation tags lets you see costs per project or team, and tag policies in AWS Organizations help keep tags consistent.

Think of it like this
Name labels in the shared fridge
In a PG in Koramangala, five flatmates share one fridge. Without labels, nobody knows whose curd went bad or who bought the expensive cheese. Once everyone writes name and date on their boxes, splitting the grocery bill takes two minutes. Tags are those labels on AWS resources, and cost allocation tags let the bill be split the same way.
Watch it happen
From tag to cost report
1/5Agree on a few required keys, such as Project, Environment, Owner and CostCentre, with exact spellings.
The big ideas
What you need to know
Few, required, consistent
Four or five mandatory keys used everywhere beat thirty optional ones. Tags are case-sensitive, so Project and project are different.
Tag in code, not by hand
IaC tools can add default tags to every resource they create, so nobody forgets.
Activate early
Cost allocation tags apply from activation onwards. A backfill request can cover up to the previous 12 months, but early activation keeps reports simple.
Not everything is taggable
Some charges, like certain data transfer, can't be tagged. Separate AWS accounts per environment give an even cleaner split.
See it in code
Walk through the code
1provider "aws" {2 region = "ap-south-1"3 4 default_tags {5 tags = {6 Project = "capstone"7 Environment = "dev"8 Owner = "neha.sharma"9 CostCentre = "training"10 }11 }12}13 14resource "aws_s3_bucket" "uploads" {15 bucket = "capstone-dev-uploads-7f3a"16 17 tags = {18 DataClass = "internal"19 }20}1/4The AWS provider for the Mumbai Region.
Terraform AWS provider default_tags. Every resource this provider creates gets these tags, merged with any resource-level tags.
Save yourself the pain
Common mistakes
Oops
Letting each developer invent tag names, so you end up with Env, env, environment and Stage.
Do this instead
Publish a short tagging standard and enforce it with tag policies and IaC defaults.
Oops
Adding tags but never activating them as cost allocation tags.
Do this instead
Activate them in the Billing console, or they won't appear in Cost Explorer or cost reports.
Your mission
Split your bill by project
Quick check
You add a Project tag to resources. Why doesn't Cost Explorer let you group by it yet?
Go deeper
- 1Define three standard tags and apply them to every resource in your projects.
- 2Activate them as cost allocation tags in the Billing console.
- 3Use the Resource Groups Tag Editor to find untagged resources.
More topics at this stop
Stuck on this topic? Ask an Insider
Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.