AWS Details Amazon Bedrock Cost Attribution and Controls for AI Developer Tools
Enterprise AI · AI coding
AWS published an implementation guide showing how Amazon Bedrock tracks inference costs down to individual IAM principals without API changes. By integrating external identity providers via AWS IAM Identity Center and propagating session tags into CUR 2.0 and Cost Explorer, organizations can map AI tool spending across developers and departments.
AWS outlined how organizations can implement built-in, zero-instrumentation cost attribution for AI developer and productivity tools operating on Amazon Bedrock. The attribution mechanism functions at the endpoint level across both the bedrock-runtime and bedrock-mantle endpoints, capturing IAM caller identities directly beneath application-specific logic. According to AWS, tools such as Claude Code, Claude Desktop, OpenAI Codex, ChatGPT Work, and OpenCode invoke Bedrock through these endpoints. When users authenticate individually via AWS IAM Identity Center linked to an external identity provider using SAML 2.0 or SCIM provisioning, their session identities and organizational tags (such as Team and CostCenter) flow automatically into AWS Cost and Usage Reports (CUR 2.0) under the line_item_iam_principal column, as well as into AWS Cost Explorer. AWS detailed that billing usage is aggregated per principal and per usage type for each export interval, noting that CUR 2.0 does not contain per-request costs; organizations requiring prompt-level tracking must use model invocation logs or metadata tags. AWS also documented configuration steps for client environments, including setting up single sign-on (SSO) profiles in the AWS CLI, adjusting client configuration files for desktop and CLI tools, and activating cost allocation tags in the management billing account.
Key takeaways
- Amazon Bedrock traces inference calls to caller IAM ARNs at the endpoint level across bedrock-runtime and bedrock-mantle without modifying API calls.
- IAM Identity Center propagates federated user sign-in names and session tags like team and cost center directly into CUR 2.0 and Cost Explorer.
- Billing data aggregates costs per principal per export interval, while per-prompt tracking requires model invocation logs or request metadata tags.
- Client setup covers CLI SSO profiles and native configuration files for developer tools including Claude Desktop, Claude Code, and Codex.
Source:AWS Machine Learning Read the original ↗
Prepared, checked and automatically published by AI; not individually reviewed by a human.