Charging Back Shared Platform and AI Costs
This lesson explains how cost categories, split charge rules, split cost allocation data and tagged inference profiles allocate shared and generative AI costs to teams.
Learning outcomes
After completing this lesson, you will be able to:
- Describe how cost categories and split charge rules distribute shared costs.
- Explain how split cost allocation data allocates shared container clusters.
- Explain how to attribute Bedrock token costs to teams.
AWS Cost Categories and split charges
AWS Cost Categories group costs into business dimensions, such as business unit or product, with rules on accounts, tags, services, charge types and other categories, applied from the start of the month. Split charge rules divide a shared cost category, for example a networking account or support charges, across other categories proportionally to their costs, evenly, or by fixed percentages. Cost categories appear in Cost Explorer, Budgets and the Cost and Usage Report.
The following diagram works through a proportional split charge.

Split charges
Split cost allocation data for containers
When several teams share an ECS or EKS cluster, the instances' cost cannot be tagged to one team. Split cost allocation data divides the cost of the cluster's EC2 instances to individual ECS tasks or Kubernetes pods based on their CPU and memory reservations or usage, and adds the results to CUR with task, service, namespace and label information, so each team is charged for what its workloads used.
Attributing generative AI costs
Amazon Bedrock charges by tokens, which all look alike on the bill. Creating an application inference profile for each team or application, tagged with cost allocation tags, and having each team invoke its own profile makes Bedrock usage appear by tag in Cost Explorer and CUR. Bedrock's CloudWatch metrics for input and output tokens per model or profile give near real-time visibility, and a central gateway can enforce per-team token quotas before the bill arrives.
| Shared cost | Allocation mechanism |
|---|---|
| Shared networking, security or support costs | Cost category split charge rules |
| Shared ECS or EKS clusters | Split cost allocation data |
| Bedrock token usage | Tagged application inference profiles per team |
| Resources that cannot be tagged | Cost categories on accounts and services |
Allocating shared costs
A platform team's bill
A platform team runs a shared EKS cluster for 25 teams, a central networking account and a generative AI gateway, and finance wants each team to see its full cost.
Split cost allocation data allocates the cluster by pod requests, using the team label. A split charge rule distributes the networking account's cost across business units in proportion to their spend.
The AI gateway invokes a separate application inference profile for each team, tagged with the team's cost centre, so Bedrock charges appear in the same cost category reports as everything else.
Why can't tags on worker nodes allocate a shared EKS cluster's cost to teams?
Show answer
One node runs pods from several teams, so a node tag cannot divide it. Split cost allocation data allocates the node's cost to pods by their CPU and memory.
Exam Tips
Remember for the exam
- Divide shared platform costs across business units: cost category split charge rules.
- Charge teams for their share of a shared EKS or ECS cluster: split cost allocation data.
- Report Bedrock costs per team or application: tagged application inference profiles.