Allocating Costs and Charging Back to Teams
This lesson explains how costs are allocated to the teams and products that create them, combining account structure, activated tags and rules for costs that are shared or cannot be tagged.
Learning outcomes
After completing this lesson, you will be able to:
- Explain why cost allocation tags must be activated.
- Describe how accounts, tags, cost categories and split charges allocate costs.
- Distinguish showback from chargeback.
- Explain how shared and untaggable costs are allocated.
Cost allocation tags
Tags on resources do not appear in billing data automatically. A tag key must be activated as a cost allocation tag in the management account, and it then appears in Cost Explorer, budgets and the Cost and Usage Report only for usage from that point forward; earlier costs remain unattributed. Activation therefore belongs at the start of a tagging rollout, not after it. AWS also provides AWS-generated cost allocation tags, such as aws:createdBy, which record who created a resource and can be activated in the same way.
Allocating costs
Costs are allocated to teams and business units in four complementary ways. The account structure is the most reliable basis: giving each workload its own accounts captures costs that cannot be tagged, such as some data transfer and support charges. AWS Cost Categories group costs by rules, on account, tag, service or charge type, into business dimensions such as business unit or product.
Split charges distribute shared costs, such as a central platform or Enterprise Support, across categories proportionally, evenly or by fixed percentages. AWS Billing Conductor produces pro forma bills with custom pricing rules and billing groups, for chargeback at internally negotiated rates or for resellers billing their customers. The following table summarises the tools.
| Tool | What it does |
|---|---|
| Account structure | The most reliable allocation; captures untaggable costs such as some data transfer and support |
| AWS Cost Categories | Group costs by rules (account, tag, service, charge type) into business dimensions such as business unit or product |
| Split charges | Distribute shared costs (a platform, Enterprise Support) proportionally, evenly or by fixed percentage |
| AWS Billing Conductor | Pro forma billing with custom pricing rules and billing groups, for chargeback at negotiated rates or reselling |
Showback and chargeback
Showback reports costs to teams without moving money; chargeback bills them internally. Showback is usually the first step, because it builds trust in the data before it affects budgets. Either way, publish dashboards by cost category and set budgets per cost category so teams receive alerts on their own spending.
Shared and untaggable costs
Some costs are shared by several teams, and some cannot be tagged at all. Shared platform costs, such as a shared VPC's NAT gateways or a Kubernetes cluster used by many teams, are distributed with Cost Categories split charges, or more precisely with usage data: split cost allocation data for Amazon ECS and Amazon EKS divides the cost of shared instances among the tasks and pods that used them.
Commitment discounts are shared across the organisation's accounts by default, so the account that bought a Savings Plan is not necessarily the one that benefits; Cost Explorer's amortised and net amortised views assign the discount, and the upfront payment, to the accounts that used it. Costs that cannot be tagged, such as some data transfer and support charges, are best separated with an account per team or product, which is one more reason the account structure is the foundation of cost allocation.
Allocating shared platform costs to business units
A company has three business units, each with several accounts, and a shared platform account that runs the networking hub and a Kubernetes cluster used by all three. Finance wants a monthly cost per business unit, including a fair share of the platform. First, CostCenter is activated as a cost allocation tag in the management account. Then a cost category maps accounts and tags to business units, and a split-charge rule distributes the platform account's costs in proportion to each unit's own spend:
{
"Name": "BusinessUnit",
"RuleVersion": "CostCategoryExpression.v1",
"Rules": [
{ "Value": "Retail", "Rule": { "Dimensions": { "Key": "LINKED_ACCOUNT", "Values": ["111100001111", "111100002222"] } } },
{ "Value": "Wholesale", "Rule": { "Tags": { "Key": "CostCenter", "Values": ["CC-2000"] } } },
{ "Value": "Digital", "Rule": { "Tags": { "Key": "CostCenter", "Values": ["CC-4410"] } } },
{ "Value": "Platform", "Rule": { "Dimensions": { "Key": "LINKED_ACCOUNT", "Values": ["999900009999"] } } }
],
"SplitChargeRules": [
{ "Source": "Platform", "Targets": ["Retail", "Wholesale", "Digital"], "Method": "PROPORTIONAL" }
]
}Cost Explorer and Budgets can now report and alert by BusinessUnit. The company starts with showback dashboards to build confidence in the numbers, and moves to chargeback in the next financial year. If the business units were to be billed at internally negotiated rates rather than AWS prices, AWS Billing Conductor would produce pro forma bills per billing group.
Why do costs from last month not appear under a newly activated cost allocation tag?
Show answer
Cost allocation tags apply from the time they are activated in the management account; earlier costs are not tagged retroactively.
Exam Tips
Remember for the exam
- Tags must be activated as cost allocation tags before they appear in billing.
- To map accounts and tags to business units, use Cost Categories.
- To split shared platform costs across teams, use Cost Categories split charges.
- For custom rates in internal chargeback, use AWS Billing Conductor.
- Costs that cannot be tagged are best separated with an account per team.