AI Cloud Architect

Tokenomics at scale: Track and cap Amazon Bedrock spend per IAM principal with CUR 2.0 and AWS Budgets

AWSHow-to by Arun Chandapillai, Aditya Mettu, Andre Bernardo, Andrew Dunham, Levi McCormick and Cami PerssonAWS Artificial Intelligence Blog

Get per-identity Amazon Bedrock cost visibility and enforceable spend limits using only AWS-native features, with no application code for the common case. Attribute spend with IAM principal tags, report with CUR 2.0 or Cost Explorer, and enforce with AWS Budgets actions that apply a Deny policy when a threshold is crossed.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Bedrock records the caller's IAM principal on each inference, so spend can be tagged, reported with CUR 2.0 or Cost Explorer, and capped with AWS Budgets actions that attach a Deny policy.

Who it is for

Platform and FinOps teams running Amazon Bedrock through per-person or per-app IAM roles that need spend caps without writing custom code.

Key points

  • Enforcement works per role or user; a shared role means the Deny blocks everyone on it.
  • Budget data refreshes up to three times a day, so spend can overshoot a threshold before the action runs.
  • Cost allocation tags appear up to 24 hours after first use and populate billing up to 24 hours after activation; they are not retroactive.
  • Enforcement needs a separate budget action role; the AWS managed policy covers only the configuring user.

The same at other vendors

Timeline

  1. What it explainsAmazon Bedrock now supports cost allocation by IAM user and role · AWS · Announcement
  2. What it explainsIntroducing granular cost attribution for Amazon Bedrock · AWS · Announcement
  3. What it explainsManaging Amazon Bedrock costs end to end: A playbook for FinOps and platform teams · AWS · How-to
  4. This postTokenomics at scale: Track and cap Amazon Bedrock spend per IAM principal with CUR 2.0 and AWS Budgets

Go deeper