AI Cloud Architect

Tokenomics at scale: How Jamf built real-time spend enforcement for Amazon Bedrock

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

As generative AI adoption scales, cost governance becomes a top challenge. Learn how Jamf built real-time, per-user spend enforcement for Amazon Bedrock using IAM Customer Managed Policies, an Amazon Athena cost view, and a serverless AWS Lambda loop that applies tiered model limits in near-real-time without disrupting active sessions.

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

AI: Summary

What it is

Bedrock spend is tracked per engineer in Athena, and an IAM policy loop denies premium Claude models at 80% and 100% of a daily budget while leaving Haiku open.

Who it is for

Platform and FinOps teams running Amazon Bedrock for many engineers that need per-user cost caps without blocking work.

Key points

  • Thresholds: Opus denied at 80% of daily budget, Sonnet at 100%, Haiku never blocked (example from Jamf).
  • Policy changes apply within minutes, with no re-authentication, and reset at the daily window.
  • Lambda runs every 15 minutes; IAM customer managed policies allow five versions, so old versions must be deleted.
  • Athena scans raw JSON logs in full, so the post recommends a single grouped query or Parquet.