#AWS#Security#AI Agents#IAM#Cloud

AWS IAM for Agents (Preview): Giving Each AI Agent Its Own Identity

webhani·

Most AI agents running on AWS today share an identity with whatever hosts them: an EKS pod role, a Lambda execution role, or a task role. When an agent calls S3 or Bedrock, CloudTrail shows the role, not which agent, or which delegated sub-agent, made the call. At re:Invent 2026, AWS announced IAM for agents, a preview feature aimed squarely at this gap.

The details below come from conference coverage and AWS-related write-ups, not from hands-on use. The feature is in preview, so verify specifics against the official documentation before designing around it.

What was announced

As reported, IAM for agents gives each agent, and each sub-agent, its own identity, generated at runtime. A few properties stand out:

  • Attestation before issuance. The identity is issued only after the service running the agent proves what it is. An agent cannot simply claim an identity.
  • Permissions stay in IAM. The identity does not replace roles and policies. Roles still decide what is allowed. The new identity records which agent used them.
  • Standards-based credentials. Coverage describes SPIFFE-compatible identities on EKS, AgentCore Runtime and AgentCore Gateway, which would let agents authenticate to systems outside AWS.
  • CloudTrail attribution. Actions are tagged with the agent's identity, so an audit can answer who authorized the agent and which agent acted.
  • IAM Credential Broker (also preview). It is meant to let agents reach third-party systems such as Snowflake or Salesforce without each team hand-building OAuth handling.

Why this matters

The usual objection to agent autonomy in production is not capability. It is accountability. With a shared role, an incident review looks like this: a bucket was read at 03:12 by app-task-role. Which of the twelve agents running under that role did it? Why? On whose behalf? Without per-agent identity, the answer is reconstructed from application logs, if they exist.

Agent identity moves that answer into the platform's audit trail, which is where security and compliance teams already look.

A design sketch you can start on now

Even in preview, you can structure your systems so that adopting per-agent identity is a configuration change rather than a rewrite. The principle: make "which agent" an explicit concept in your own code today.

// Minimal agent context carried through every tool call.
// Today it feeds your own logs; later it can map to a platform identity.
export interface AgentContext {
  agentId: string;       // stable name of the agent definition
  runId: string;         // unique per execution
  parentRunId?: string;  // set when spawned by another agent
  onBehalfOf: string;    // the human or system that authorized this run
}
 
export function auditLog(ctx: AgentContext, action: string, resource: string) {
  console.log(
    JSON.stringify({
      ts: new Date().toISOString(),
      ...ctx,
      action,
      resource,
    })
  );
}

Every tool wrapper receives an AgentContext and logs through auditLog. When platform-issued identities arrive, you add the identity ARN or SPIFFE ID to the same record, and your existing queries keep working.

Second, split roles by agent purpose rather than by application. An agent that summarizes tickets should not run under a role that can also write to production databases just because both live in the same service.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": ["s3:GetObject"],
      "Resource": "arn:aws:s3:::example-support-tickets/*"
    }
  ]
}

A narrowly scoped policy like this one, attached to a role used by only one agent type, is easy to reason about whether or not the new identity feature is on.

Open questions we would ask before adopting

  1. Preview limits. Coverage mentions gated preview. Which regions, and which runtimes (EKS, AgentCore) are supported on day one?
  2. Pricing. One report says the EKS piece has no additional charge. Confirm this for every component, including the Credential Broker.
  3. Non-AWS runtimes. If your agents run on other clouds or on-premises, how do attestation and issuance work there?
  4. Sub-agent depth. How is identity propagated through chains of delegated agents, and how does that show up in CloudTrail queries?
  5. Interaction with existing IdPs. Coverage mentions Okta and Entra pilots. Check how human authorization maps to the agent identity.

Our recommendation

For teams running agents in production on AWS:

  • Inventory your agents and the roles they actually use. Many teams discover several agents sharing one broad role.
  • Add run-level audit logging now, as in the sketch above. It is useful regardless of what AWS ships.
  • Do not wait for the feature to tighten permissions. Least privilege per agent purpose works today.
  • Pilot in a non-critical workload once you have preview access, and compare CloudTrail output with your own audit logs.
  • Treat the feature as a complement, not a guardrail. An identity tells you who acted. It does not stop an agent from doing something allowed but undesirable. That still needs policy limits, approval steps and spending controls.

Per-agent identity is the kind of unglamorous infrastructure that makes agent deployments reviewable. Preparing your audit trail now costs little and pays off whichever way the preview evolves.