Tokenomics at scale: How Jamf built real-time spend enforcement for Amazon Bedrock
AWS•How-to••by Arun Chandapillai, Aditya Mettu, Andre Bernardo, Andrew Dunham, Levi McCormick and Cami Persson•AWS 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.
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.
AI:Codex OTel metrics can be sent from a local collector on each workstation to Amazon CloudWatch, giving a dashboard of Codex usage by user, team and cost center without a central proxy in the inference path.
AI: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.
AI:A CloudWatch, Firehose, Lambda and Athena pipeline gathers Bedrock invocation logs from linked accounts into one queryable table with prompts, tokens, models and IAM identity.