JupiteX Get the app
Science & Technology30 Nov 2026 · about 7 min

Three AI agents share one IAM role. Which one ran up the bill?

The brief

An IAM role is an AWS identity with permissions that a user or service can use to access AWS resources. Unlike a person’s name, the role identifies a set of permissions and a principal in AWS. The article’s example has three AI agents sharing one role, so their activity can use the same identity when accessing Bedrock. When several agents use that shared role, Bedrock charges can be attributed to the role. The role is the spending identity AWS can report, but the article does not describe a way to distinguish each agent’s individual requests through that shared identity. It compares an unowned role to a corporate card with no manager. This matters because cost attribution needs to connect spending to someone who can take responsibility. The article recommends recording caller identity in a new CUR 2.0 export and putting a person’s email in the role’s owner tag. That can point to a responsible person, but it does not by itself reveal which of the shared agents made a particular request.

01

What is an IAM role, and how can multiple AI agents use the same one?

An IAM role is an AWS identity with permissions that a user or service can use to access AWS resources. Unlike a person’s name, the role identifies a set of permissions and a principal in AWS. The article’s example has three AI agents sharing one role, so their activity can use the same identity when accessing Bedrock.

When several agents use that shared role, Bedrock charges can be attributed to the role. The role is the spending identity AWS can report, but the article does not describe a way to distinguish each agent’s individual requests through that shared identity. It compares an unowned role to a corporate card with no manager.

This matters because cost attribution needs to connect spending to someone who can take responsibility. The article recommends recording caller identity in a new CUR 2.0 export and putting a person’s email in the role’s owner tag. That can point to a responsible person, but it does not by itself reveal which of the shared agents made a particular request.

02

When several agents share a role, what can AWS identify about Bedrock spending—and what can it not identify?

When several AI agents use one IAM role, AWS can identify the role associated with Bedrock inference spending. It cannot, from that shared role identity alone, say which agent made a particular call. The distinction matters: a cost report can show where a bill landed without showing who should answer for it.

The article gives the example of a role called research-agent-2 appearing as the biggest AI line of the month. Cost Explorer can identify that role, but unless someone tagged it, the result may be only an ARN. AWS’s public-preview FinOps Agent can trace cost changes to a responsible user or role and send findings through Jira, but an untagged role has nowhere for that trace to land.

So the role name is not enough to establish an owner. Caller-identity data can reveal which principal incurred the charge, while an owner tag can connect that principal to a person. Shared-agent attribution still stops at the identity the agents share.

03

How do caller-identity data and owner tags help connect a role’s charges to a responsible person?

Caller-identity data tells a cost report which IAM principal—a user or role—made the Bedrock call. An owner tag adds the missing link to a responsible person. Together, they help turn a charge attached to an AWS identity into a question a team can act on: who owns this spending?

The article’s method is to create a new CUR 2.0 export in Data Exports and select “Include caller identity (IAM principal) allocation data.” Principal tags then appear in the tags map with the iamPrincipal/ prefix. An Athena query can compare each principal’s Bedrock cost with iamPrincipal/owner and flag missing or invalid owner values. The query treats an email address as the valid owner format.

This is not a retroactive fix: existing exports do not gain the caller-identity column. The results are also leads, not proof of who made a request. Rows identify roles or users with spending, and teams still need to establish who requested that identity and assign a responsible owner.

04

What happens when a role has Bedrock charges but no valid owner tag?

A role with Bedrock charges but no valid owner tag appears in the article’s monthly cost query. The same is true when the tag contains a team or agent name instead of a person’s email address. The result is a list of identities whose spending lacks the person-level ownership the article’s process requires.

The query reads caller identity and the iamPrincipal/owner tag from CUR 2.0 data, then sums Bedrock costs for the current billing month. It returns principals whose owner is missing or does not match an email-address pattern. The article notes that a missing tag returns null rather than causing the query to fail. A row is a question to investigate, not a conviction about who requested the role.

The public-preview FinOps Agent can route cost-change findings to responsible teams through Jira, but an untagged role gives its trace nowhere to land. Charges with no caller identity are not in this query at all; the article says they deserve their own count. Compute, storage, and tool costs also are not covered by this Bedrock attribution.

05

How widespread is AI-spending management, and how much can repeated runs of the same task vary in token use?

Managing AI spend has become widespread among the FinOps Foundation’s respondents. Its State of FinOps 2026 found that 98% of 1,192 respondents now manage AI spending, compared with 31% two years earlier. That rapid change makes it harder for organizations to treat AI costs as a niche concern.

Forecasting is difficult because repeated runs of the same task may use very different amounts of tokens. A study of frontier models on SWE-bench Verified found differences of up to 30 times. The priciest runs were typically about twice as costly as the cheapest. Models asked to estimate their usage in advance consistently underestimated it.

The article argues that budgets alone cannot control spending when neither the task nor the model can reliably predict a run’s cost. It presents attribution after the fact as the remaining control: identify the user or role responsible, connect that identity to an owner, and act on the findings. AWS’s public-preview FinOps Agent can send cost-change findings to responsible teams through Jira, provided the identity has an owner to trace to.

06

Which costs does AWS’s Bedrock attribution cover, and which costs—such as compute, storage, or tools—remain outside it?

Bedrock attribution is useful for finding which IAM user or role is associated with model-inference spending. But it is not a complete accounting of everything an AI agent uses. The article stresses this limit so that teams do not mistake an inference report for the total cost of an agent or project.

For example, a CUR 2.0 export with caller-identity allocation data can show Bedrock inference charges for a role, and an owner tag can connect that role to a person. The article’s query focuses on Bedrock product codes and sums those charges by principal. It does not add the costs of the infrastructure or other services an agent may use.

AWS attribution covers Bedrock model inference. Compute, storage, and tool costs remain outside that attribution and bill as they always did. Teams therefore need to treat the Bedrock report as one view of spending, not a full budget for an agent. The article does not describe a single mechanism that assigns those other costs to the same owner.

07

What are tokens, and why can the number a model uses make an AI run’s cost hard to predict?

In standard AI usage, tokens are small units of text that a model processes or generates; they may be parts of words, whole words, or punctuation. This definition is general background, rather than a definition given in the article. The article’s point is that token use matters because the amount can vary sharply between runs of the same task.

A study of frontier models on SWE-bench Verified found that repeated runs of the same task could differ by as much as 30 times in tokens. The priciest runs were typically about double the cheapest. When models were asked to estimate their own usage beforehand, they consistently underestimated it. That makes a forecast based only on a task description unreliable.

If neither the task nor the model can say in advance how many tokens a run will use, the article says budgets become aspirational. It presents after-the-fact attribution as the remaining control: identify the IAM user or role that incurred the Bedrock inference cost, then connect that identity to a responsible owner. This still does not cover compute, storage, or tool costs.

This brief was written by AI from the original reporting and checked by other models. Names, figures and quotes come from the source; read it for full context.

Read more in the JupiteX app

Pulse is free. New stories every 4 hours, each one broken into the questions that explain it.

Or read more news on the web