A cloud bill grouped by service tells you that compute is the biggest line. It does not tell you which project, which client or which forgotten experiment is responsible. Tags fix that. A tag is a key and value attached to a resource, such as project=shop or env=test, and providers can break the bill down by them. AWS calls these cost allocation tags, Azure uses tags and Google Cloud uses labels; the idea is the same.
A scheme small enough to follow
Big organisations publish tagging standards with a dozen required keys. A small team will not keep that up. Four keys cover most needs:
| Key | Example values | Question it answers |
|---|---|---|
| project | shop, warehouse-app, reporting | What is this for? |
| env | prod, staging, test | Can it be switched off at night? |
| owner | a person or team name | Who do I ask before deleting it? |
| expires | a date, or "never" | Should this still exist? |
Write the allowed values down. Free-text tags drift into "Prod", "prod", "production" and "live", and the report splits one project four ways.
Making tags show up in billing
- Tag new resources at creation. Most consoles and infrastructure-as-code tools let you set default tags.
- In AWS, activate the tag keys as cost allocation tags in the billing console; costs are only grouped by a tag from the time it is activated, not retrospectively.
- In Azure and Google Cloud, check how tags or labels flow into cost reports and exports for the services you use; not every resource type passes them through.
- Build one saved report: monthly cost grouped by project, filtered by env.
The mistakes that make tags useless
- Tagging servers but not disks, snapshots and addresses, which then appear as a large untagged line.
- No owner for untagged spend. Give someone the job of chasing the untagged line every month.
- Tags nobody enforces. Providers offer policies that require tags on creation; even a weekly script that lists untagged resources helps.
- Putting secrets or personal data in tags, which are visible to anyone with billing or read access.
A hypothetical payoff
Team K's bill has crept up for three months. Grouped by project, it turns out the shop is flat; the growth is all in project=reporting, env=test, owned by a contractor who left. The expiry tag says it should have been removed months ago. Deleting it takes ten minutes. Without tags, finding the same cause would have meant inspecting resources one by one.
Tags also make budget alerts far more useful. Read the rest of the cost notes or the topics list.
Tags beyond the bill
The same four keys help outside finance. The env tag lets a scheduler switch test machines off at night. The owner tag tells whoever is on call who to phone when something misbehaves. The expires tag gives a monthly clean-up a simple list to work through. Because tags serve several jobs at once, they are worth the few seconds it takes to add them when a resource is created, and worth a short check during every review of the bill.