# AWS IAM for agents

Gives each AI agent its own verifiable identity on top of its IAM role, so policies and CloudTrail can tell agents apart.

Naming: often called "Bedrock IAM for agents". Official name: AWS IAM for agents (agent and workload identity, preview). Not AgentCore Identity.

## At a glance

| | |
|---|---|
| Status | Preview, subject to change |
| Announced | 2026-12-01 |
| Regions | All commercial Regions; POC ran in us-east-1 |
| Price | No additional charge during preview |
| Demo | [POC script](poc/quickstart.py) |

## Why it matters

- Policies can allow or deny one named agent with `aws:OriginIdentity/Subject`.
- CloudTrail can attribute actions to an agent, even on a shared role.
- No new credential system: the identity joins the existing role session.

## Good fit

- Many agents on AgentCore Runtime or Amazon EKS sharing roles.
- Data owners wanting policies that name an agent.
- Audit teams asking "which agent did this".

## Not a fit

- Production workloads needing GA terms.
- Existing AgentCore runtimes or gateways: cannot be enabled after creation.
- Agents on Lambda, ECS or EC2: no integration published.

## Gotchas

- Enable identity at runtime creation; it cannot be added later or removed.
- The agent also holds plain execution-role credentials in preview: Deny statements are required.
- X.509 identities cannot be revoked; prefer JWT-SVIDs.
- Docs say CloudTrail shows `userIdentity.onBehalfOf`. Observed: absent; join `GetIAMWorkloadIdentityCredentials` events by role session name.
- Post-preview pricing is not stated; do not promise free.

## Try it

The [POC script](poc/quickstart.py) invokes both agents and prints the CloudTrail attribution. It needs a deployed POC.

Observed 2026-12-01 on one shared execution role: agentA read the object, agentB got AccessDenied.

Source: [IAM guide](https://docs.aws.amazon.com/IAM/latest/UserGuide/agent-workload-identity.html), [AgentCore guide](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-agent-workload-identity.html), read 2026-12-01.
