Skip to content

Allocating AWS costs to teams, tags first and rules for the rest

The CostReveal team, , 4 minute read

Every company that runs on AWS eventually asks what each team spends. The usual first answer is "tag everything", and six months later a third of the bill is still untagged, half the tags are spelled three ways, and nobody trusts the report. Tags are the right foundation. They are not the whole answer. This post covers how to allocate AWS costs to teams properly: which tags to use, the activation step most teams miss, and how to explain the spend no tag ever will.

Start with a few keys, spelled one way

Tagging works when it is boring. A handful of keys, each with one spelling, applied the same way everywhere:

  • A key for each question you ask. Usually team for who owns it, and feature or customer where those matter. A key nobody reports on is a key nobody maintains.
  • One spelling. AWS tag keys are case sensitive: Team, team and TEAM are three different keys. Choose one and hold to it.
  • Tag at creation. Resources created by infrastructure as code carry their tags from the first hour. Tagging by hand afterwards always leaves gaps.
  • Enforce it. AWS Organizations tag policies standardize keys and values, so drift is caught where resources are made, not discovered on a bill.

The step most teams miss: activation

A tag on a resource is not a tag on the bill. AWS includes a tag in the Cost and Usage Report only after it is activated as a cost allocation tag, from the management account. Until then, every resource carrying it is billed as if it had no tag at all.

Three details catch teams out:

  • Activation is per key, in the Billing console under Cost allocation tags.
  • A key appears there only after a resource has used it, which can take up to a day.
  • Spelling must match exactly, so activating team does nothing for resources tagged Team.

CostReveal shows where each of your keys stands under Connections, Read automatically: In the report, Not activated, or Not seen. For keys your resources carry but AWS has not activated, it gives the command that activates exactly those, spelled as AWS has them.

How CostReveal reads your tags

For each owner, team, feature, customer and user, a project reads a list of tag keys in order, and the first one present wins. The defaults cover common names such as team, owner, feature and customer, and each project can set its own under Settings, Projects, Tag keys. CostReveal matches a key however the report spells it, so a resource's Cost-Center tag is found under the name CUR 2.0 gives it.

Spend explained by a tag is labelled inferred: a signal you already have names the owner.

What tags will never explain

Even perfect tagging leaves spend no tag can reach:

  • Accounts that belong to one team. Every line in a team's own account is theirs, tagged or not.
  • Shared infrastructure. A load balancer, a NAT gateway or a cluster serves many teams at once, so no single tag is honest.
  • Charges with no resource. Support, taxes and some data transfer have nothing to tag.

Allocation rules cover these, each written as a sentence anyone can check. A rule that names an owner, such as every line in an account belonging to a team, explains what it matches as inferred, as a tag would. A rule that shares a cost divides what is still unknown among owners at fixed percentages, evenly, or in proportion to the spend tags, owners and rules already explain for each, and labels the result allocated.

Keep the unknown visible

Whatever is left is shown as unknown, never spread across teams to make the report look complete. Home shows the one change that would explain the most of it, often a team tag on the resources of one service. A team that sees its unknown share shrink month by month trusts the figures more than one handed a report that was always 100 percent attributed.

What it does not claim

Activating a tag key adds it to the report for spend from then on. CostReveal reads what the report contains; it cannot attribute past spend by a tag the report never carried. And a rule is only as fair as the sentence it states, which is why every rule is shown in words, beside what it explains.

Frequently asked questions

Why does my tagged spend show as untagged? The tag key is probably not activated as a cost allocation tag, from the management account. Until it is, AWS bills tagged resources as if they had no tag.

Are AWS tag keys case sensitive? Yes. Team and team are different keys, so choose one spelling and activate exactly that.

How long until a new tag appears? A key appears for activation only after a resource has used it, which can take up to a day.

How do I allocate shared costs like NAT gateways? With an allocation rule that shares the cost among teams, at fixed percentages, evenly or in proportion to the spend already explained for each.

What happens to spend nothing explains? It is shown as unknown, never spread across teams, with the change that would explain the most of it.

Keep reading