Lesson 5 of 5 Cost Governance and Visibility

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.

A split charge rule dividing a shared cost. The networking account's $10,000 is a shared cost category. The rule divides it across the business units in proportion to their own costs: Retail, with $50,000 of direct cost, receives $5,000; Payments, with $30,000, receives $3,000; and the data platform, with $20,000, receives $2,000.
The amounts are illustrative. A proportional rule gives each unit the same 10% uplift here, because the shared cost is 10% of the units' combined direct cost.
Fill in the value

Split charges

Exam skills 3.3.4

Calculate proportional split charges.

Log in to try this activity Interactive activities are free with an account.

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 costAllocation mechanism
Shared networking, security or support costsCost category split charge rules
Shared ECS or EKS clustersSplit cost allocation data
Bedrock token usageTagged application inference profiles per team
Resources that cannot be taggedCost categories on accounts and services
Match the pairs

Allocating shared costs

Exam skills 3.3.4

Match each shared cost with the mechanism that allocates it.

Log in to try this activity Interactive activities are free with an account.
Worked example

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.

Check yourself

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.