Skip to content
Free since 2015. Built for the engineers who keep things running.

cat /articles/three-ai-agents-share-one-iam-role-which-one-ran-up-the-bill.md

Security

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

AWS can now bill Bedrock inference to individual IAM roles, but an untagged role leaves the spend with no one to answer for it. This piece shows how to find those roles and block new ones at deploy time.

The New Stack29 Nov 2026 · 9 min read · summary

article --summary

The summary

Cost reports can show which IAM role ran up an AI bill, but not who owns that role unless someone tagged it. The piece argues that this gap matters more now that token use varies widely between runs and models are poor at predicting their own costs, so tracing spend to an accountable owner after the fact is the main control left. It treats the IAM role as the point where cost, risk, and ownership meet. The author provides a query over the new CUR 2.0 caller-identity data that lists this month's Bedrock spend by principal and flags any role whose owner tag is missing or not an email address. Next comes a per-owner budget alert through AWS Budgets, and a Rego policy for env zero that rejects new IAM roles without an email owner tag and rejects policies granting Bedrock actions on every resource. The same rules can run in conftest or another CI step by swapping a small wrapper block for a single line.

Editorial note: This is a summary of an article first published by The New Stack. The full piece is on their site.

Reading now

Topic
Security
Source
The New Stack
Published
29 Nov 2026
Format
Curated summary

Have a take on this?

Write it up and submit it. It goes on the list once an editor approves it.

Submit an article

articles --latest

Latest articles

New from the blogs we follow and the community.

All articles

newsletter --weekly

DevOps Weekly, minus the noise.

The best reads, new jobs and upcoming events, in one email a week.