Cost attribution and controls for AI developer and productivity tools on Amazon Bedrock
In one sentence
AWS explains how to use Amazon Bedrock's built-in cost attribution and IAM Identity Center to track and control per-user and per-team spending for AI developer and productivity tools.
Key points
- Amazon Bedrock automatically records the IAM identity of every inference call at the endpoint layer without requiring API changes.
- Integrating AWS IAM Identity Center with an external identity provider propagates session tags like team and cost center into CUR 2.0 and Cost Explorer.
- The approach works across tools like Claude Code and OpenAI Codex that invoke Bedrock via the bedrock-runtime or bedrock-mantle endpoints.
- Organizations can layer Application Inference Profiles, Projects and Workspaces, or per-request metadata tagging for finer workload or prompt-level cost visibility.
In depth
An AI-written overview of the original article, not the article itself.
AWS Machine Learning Blog published a guide on implementing zero-instrumentation cost attribution and spending controls for AI developer and productivity tools on Amazon Bedrock. The approach helps FinOps and AI platform leaders track per-user costs, evaluate team spending, and plan budgets as AI adoption grows.
Endpoint-level cost attribution
According to the article, Amazon Bedrock's attribution operates at the inference endpoint layer, specifically bedrock-runtime and bedrock-mantle. Because it sits beneath tool-specific logic, tools like Claude Code, Claude Desktop, OpenAI Codex, ChatGPT Work, and OpenCode automatically inherit per-user cost visibility without API changes.
When a user invokes a model, Bedrock records their full IAM ARN and session name, publishing them to AWS Cost and Usage Reports (CUR 2.0). Organizations can also pass organizational session tags, such as team and cost center, which appear in CUR 2.0 and AWS Cost Explorer for filtering.
Identity setup and tool integration
To enable per-user tracking, the article recommends configuring AWS IAM Identity Center with an external identity provider like Okta, Microsoft Entra ID, or Ping Identity via SAML 2.0 or SCIM. Administrators map organizational attributes to session tags and create permission sets scoped to the required Bedrock endpoints.
On user workstations, developers authenticate through AWS CLI v2 SSO profiles or in-app sign-in. Each AI tool then requires only standard configuration changes, such as managed preferences for Claude Desktop or config files for Codex, to route inference through Bedrock.
Reporting, visualization, and controls
Once enabled in the AWS Billing Console, CUR 2.0 delivers hourly or daily Parquet data to Amazon S3. Teams can query per-user and cost-center spending using Amazon Athena, or visualize trends via AWS Cost Explorer, Amazon QuickSight, the open-source CUDOS dashboard, and Grafana.
To prevent uncontrolled spending, the article notes that organizations can use AWS Budgets with budget actions. This lightweight option triggers automated actions, such as applying deny policies, when spending filtered by IAM principal tags exceeds set thresholds.
This summary was generated by AI from the original article and may contain errors; the original is authoritative. Copyright belongs to the original author.