What cloud cost attribution is, and why every figure needs its evidence
The CostReveal team, , 4 minute read
A cloud bill says what was spent on each service, in each account and region. It does not say who the money was for. Cloud cost attribution is the work of answering that: which team, feature, customer or user each cost belongs to. This post explains what attribution is, the ways it is done, where it usually goes wrong, and why a figure is only as useful as the evidence behind it.
What attribution answers
A bill is organized the way the provider sells: by service, resource and usage type. A business is organized another way: by teams that build, features that ship and customers that pay. Attribution connects the two. It turns "EC2 cost $48,000" into "the payments team spent $19,000 on EC2, the search team $14,000, and $15,000 is not yet anyone's".
It is the foundation for everything finance and engineering do with cost:
- Showback, so each team sees what it spent.
- Chargeback, so each cost center is charged what it used.
- Unit economics, such as cost per customer or per order.
- Margin, revenue beside what serving each customer cost.
- Budgets, so a team's limit is measured against the team's own spend.
None of these is better than the attribution under it.
How costs are attributed
There are only a few ways to know who a cost was for, and they differ in how certain they are:
- The provider states it. The service, the account, the region and, for AI providers, the model are on every billing line. Nothing needs inferring.
- A signal you already have names the owner. A tag on a resource, a label on a project, an account owned by a team, or a rule you wrote that assigns one. This is how most cloud spend is attributed.
- A shared cost is divided by something measurable. A Kubernetes cluster divided by what each workload requested and used, a shared AI key divided by the tokens each customer's calls used, or a split rule you can inspect.
- Nothing names the owner yet. Untagged resources, shared services no rule covers, and spend from before tags existed.
Each method is legitimate. The problem starts when a report hides which one was used.
Where attribution goes wrong
The most common failure is forcing every dollar into a bucket. A dashboard that shows 100 percent of spend attributed, when a fifth of it was untagged, has spread that fifth across teams by some percentage nobody chose. The total looks complete. Each team's figure is now partly a guess, and nobody can tell which part.
The second failure is a confident number with no trail. A team challenges its figure, and nobody can show whether it came from a tag, a rule or an estimate. Once one figure is doubted, every figure is, and the report stops being used.
The third is attribution that does not add up. If the teams' figures do not sum to what the provider billed, finance cannot close a month on them.
Every figure with its evidence
The answer is to keep the method with the figure. CostReveal labels every attributed figure with one of four bases, from the strongest evidence to none:
- Direct: the provider states it, such as the service or, for AI providers, the model.
- Inferred: a signal you already have names the owner: a tag or label, a workspace or project owner you named, or a rule that assigns one.
- Allocated: a shared cost divided by something you can inspect, such as a split rule, what each Kubernetes workload requested or used, or your usage data.
- Unknown: nothing names the owner yet.
Unknown spend is shown as its own figure, never spread across teams to make a report look complete. Home shows the one change, such as tagging the resources of one service, that would explain the most of it. And every attributed figure must add up exactly to the billing lines recorded, on every dimension, so the teams' figures always sum to the bill.
Attribution, allocation, showback, chargeback
The words are often used interchangeably, but they are steps:
- Attribution works out who each cost was for.
- Allocation divides a shared cost among those who used it, one way of attributing.
- Showback shows each team what was attributed to it.
- Chargeback charges each cost center that amount, once finance closes the month.
Each step depends on the one before it. A chargeback built on attribution nobody trusts becomes an argument every month.
What it does not claim
Attribution says who a cost was for, from the evidence available. It cannot invent evidence: a resource with no tag, no owner and no rule stays unknown until one of those exists, and the label says so. Attribution also does not change what was spent. It divides the bill; it never adds to it.
Frequently asked questions
What is cloud cost attribution? Working out which team, feature, customer or user each cloud cost was for, from tags, owners, rules, measured usage and what the provider states.
What is the difference between attribution and allocation? Allocation divides a shared cost among those who used it. It is one way to attribute cost, alongside tags, owners and what the provider states.
What happens to untagged spend? In CostReveal it is shown as unknown, never spread across teams, with the change that would explain the most of it.
How do I know a figure is right? Its basis says how it is known, and every dimension's figures add up exactly to what the provider billed.
Does attribution need code changes? Not for what tags, owners and rules explain. Dividing a shared AI key by customer uses usage data your application or gateway reports.
Keep reading
- Why CostReveal shows the spend it cannot explain: unknown spend, kept in the open.
- Allocation rules for shared costs: dividing what no tag explains.
- Why your AWS invoice does not match Cost Explorer: figures that tie out to the bill.