Quick reference
Four tag classes, one schema, and the evidence an auditor actually reads.
- Four classes — Billing, ownership, lifecycle and data class, kept separate so each key answers one question.
- One schema — Required keys, closed value lists and a default, stored as data and reviewed like code.
- Enforce early — Policy at creation, tags from the module, and a pipeline that fails the plan.
- Evidence on demand — A generated pack that reconciles to the invoice, including the part it does not cover.
In one line: Tags are a control, not a report. The audit tests whether the claim about ownership is true.
Start this week:
- Run the checklist against one production account.
- Enforce in audit mode for two weeks and count the failures.
- Turn on the deny rule for production, then backfill once.
Explained
What the audit asks
One question: what did application X cost in production last month? To answer it, the tags have to be activated, spelled the way the finance system spells them, and present on the resources a script created at three in the morning.
Four classes
Billing (cost-centre, business unit, service), ownership (a person or a rota, never an inbox), lifecycle (environment as a closed list), and data class (what it holds, how long, where). Separate keys, separate readers.
The schema
Write it as data: required keys, closed value lists, a default, and one deny rule for production. The same file becomes the pipeline check and the appendix in the audit pack.
Eight pages, no prices, just the schema and the evidence.
Checklist
Run this against one production account first. A schema that survives one account is a schema; one that only exists in a wiki is a draft.
Keys
- Every required key exists as a cost allocation tag.
- Key spelling matches the finance system, character for character.
- No key is used for two different questions.
Values
- environment is a closed list with four values, not free text.
- owner resolves to a person or a rota, and it is current.
- cost-centre values reconcile with the finance export.
Coverage
- Console, Terraform and scripted resources carry the same tags.
- Untagged resources are listed daily, not found at quarter end.
- A default value exists, and someone reviews it weekly.
Ownership
- One person owns the schema and its change history.
- The tag list is reviewed with the budget, not separately.
- A new service cannot ship without the first three keys.
The field guide
The full guide of the PDF (P993), page by page.
The audit asks one question (the audit question)
No auditor opens with your tagging policy. They ask for the cost of one application in one environment, then reconcile your answer against the invoice.
Tags are metadata with a job: they connect a resource to a person, a purpose and a payer. The invoice already knows the resource id. What it cannot know is who agreed to the spend.
- Free-form keys: cost_center, costCenter and cost-centre in one estate.
- Hand-typed values: prod, Prod, production, and one blank.
- Tags added after the fact, so the first months read as unallocated.
- No default, so anything a script creates arrives untagged.
| Key spelling | Three versions of one centre |
|---|---|
| Value drift | prod, Prod and production |
| Backfill | First months unallocated |
| No default | Scripted resources arrive blank |
One detail catches teams every time: user-defined cost allocation tags must be activated before they appear in cost reports, and the report only accumulates from activation onwards. A key that exists on the resource and not in the report looks exactly like a missing tag.
One rule that pays for itself If a resource cannot be created without an owner and a cost centre, there is nothing left to backfill. Enforcement removes the gap instead of reporting it.
A tag is a claim about ownership. An audit tests whether the claim holds.
Four tag classes, in this order (four classes)
One class answers the bill, one answers the pager, one answers the deployment, one answers the regulator. Separate them and no key has to do four jobs badly.
1 Billing: who pays
cost-centre, business-unit and service. These keys must match the finance system exactly, which means finance owns the list of values. Anything else is a free-text field with a report attached.
2 Ownership: who answers
owner is a person or a rota, never a team inbox. Keep the escalation path in the CMDB, not in the value, because it changes more often than the tag does.
3 Lifecycle: what it is
environment, service and version. environment is a closed list, because it is the field every cost report groups by and every policy condition tests.
4 Data class: what it holds
data-class, retention and residency. These are the tags an auditor reads when the question moves from cost to risk, and the ones that are hardest to add after the fact.
A class is a reader Each class exists because a different team reads it. If no report and no policy reads a key, the key is decoration and it will not be maintained.
Four readers, four classes. A single tag cannot satisfy all of them.
A schema you can enforce (the schema)
Write the schema as data, not prose. The same file becomes the check in the pipeline and the appendix in the audit pack.
Tag-policy.json: required keys and closed lists
{
"required": ["owner", "cost-centre", "environment"],
"closed": {
"environment": ["prod", "staging", "dev", "sandbox"]
},
"defaults": {"owner": "unassigned", "cost-centre": "unallocated"},
"deny": {"environment=prod": "owner == unassigned"}
}- required: creation fails without the key, in every account.
- closed: the value must be a member of the list, not a suggestion.
- defaults: what an unowned resource gets, so it stays queryable.
- deny: the one condition that blocks a production launch.
Keep the file small enough to read in a review. A schema with forty keys is a data dictionary, and nobody approves a data dictionary. Six keys that a report and a policy both read will survive two years of staff changes.
Defaults are not a fix unassigned is a placeholder that keeps the schema honest, and it is also a report you can run on Monday. A default that nobody reviews becomes the estate's largest owner.
One file, three uses: pipeline check, policy input, audit evidence.
Enforce at creation, not at review (enforcement)
A review finds the gap a quarter late. Enforcement means the resource never exists in the state you would have to fix.
- Organisation policy denies a create without the required keys.
- Terraform default_tags carries the schema, so nobody retypes it.
- The pipeline fails the plan when a required tag is missing.
- Exceptions are a named list with an owner and an expiry date.
Start in audit mode. Most cloud policy engines evaluate a rule without blocking, so run it for two weeks and count the failures. That count is your backfill estimate, and it is usually smaller than the argument predicts.
Then block in production only, with a documented override. An override that needs a ticket is a control; an override anyone can click is a suggestion.
Name the exception, not the team. An exception with an owner, a reason and a date is a decision; one that says legacy is a permanent hole in the report.
Backfill once, then never again Backfill from the CMDB and the invoice, not from a spreadsheet a person typed. Keep the mapping in the repository so the next audit reads the same file.
The cheapest tag is the one that was required before the resource existed.
What the auditor will ask for (audit evidence)
The interview is short. The evidence pack decides the finding, and four artefacts cover almost every question.
| Schema | tag-policy.json in version control |
|---|---|
| Coverage | Daily untagged count, with a trend |
| Allocation | Cost report by owner and environment |
| Exceptions | Named list, owner, expiry date |
Keep the pack generated, not assembled. A report produced by the job that enforces the schema cannot drift from the schema, and the auditor can re-run it without you.
- A schema with a version and a change history.
- A coverage number for the last ninety days.
- One cost report that reconciles to the invoice total.
- The exception list, with dates that have not passed.
Reconcile the total If your tagged report covers 94 per cent of the invoice, say so and name the 6. An auditor trusts a number with a known gap more than a number that claims to be complete.
Evidence you can regenerate outlives evidence you can explain.
The honest caveat: enforcement will block someone on a Friday. Run the rule in audit mode for two weeks, count the failures, then turn on the deny where it matters.
The lesson: a tag is a claim about ownership, and the audit tests the claim.
Your turn: Which tag would your last audit have found missing?
Related on this site
More notes: FinOps & cloud cost
- P1151Cost analysis commands
- P1150Five questions before you cut the bill
- P1149The cost of delay on a platform team
- P1148Storage tiers: hot, warm, cold, archive
- P1147Speed, reliability, cost, complexity
- P1146Spot capacity, without the 2am page
- P1145Six numbers in a cloud bill
- P1144Five cost drivers nobody budgets for
Open in the notes app: search, filters, copy This note on GitHub