AWS IAM for agents is a set of IAM features, announced in preview on December 1, 2026, that gives each AI agent or workload its own verifiable identity on top of the IAM role it already uses. The role still decides what the agent can do; the new identity (a SPIFFE ID such as spiffe://corp.example.com/...) says which agent made each call, so you can name it in bucket and key policies and find it in CloudTrail. In the preview it works on Amazon EKS (through Pod Identity) and on Amazon Bedrock AgentCore Runtime and Gateway, in all commercial Regions, at no extra charge.

This guide explains how the pieces fit, walks through the documented EKS setup, and ends with what to do this quarter. Facts come from the IAM What's New announcement, the IAM User Guide section "IAM for agents" and the EKS announcement, read on December 2, 2026. Everything here is preview and "subject to change", in AWS's words.

What AWS announced for agent identity

"IAM for agents" is an umbrella name. Three things sit under it, plus two neighbouring launches you will see mentioned in the same breath:

Feature Status (Dec 2026) What it does
Agent and workload identity Preview IAM acts as an identity provider for workloads; STS adds a SPIFFE identity to the role session
AWS IAM Credential Broker Public preview Gets OAuth tokens and API keys for external systems (Snowflake, Salesforce, Azure, GCP) through your existing IdP
Enterprise-managed authorization Announced Nov 17, 2026 Your corporate IdP decides which agents employees can use with the AWS MCP Server, via the ID-JAG grant
AWS Greenlight Preview Writes and formally checks tool-call policies for agents; enforcement is on AgentCore Gateway or Strands Box
AWS Context GA A shared "context graph" of business meaning that agents query over MCP

Greenlight and Context are not IAM features, but they matter for the same design question: identity says who the agent is, IAM says what AWS APIs it can call, and Greenlight constrains which tool calls it may make in sequence. This post focuses on the identity layer, because everything else depends on it.

How agent and workload identity works

The mental model from the agent and workload identity overview is short: "The identity adds to an IAM role session. It doesn't replace the role."

Before this launch, if ten agents shared one IAM role, every S3 call in CloudTrail looked like the role. You could squeeze some attribution out of session names or session tags, but the agent set those itself or your platform set them, and nothing verified them. Now the platform that runs the workload attests facts about it, STS checks those facts against a policy you wrote, and the resulting session carries a name the workload cannot forge.

The setup objects

You create these once:

  • Workload identity provider. The issuer and trust boundary. It has a scheme (SPIFFE or NONE) and, for SPIFFE, a trust domain like corp.example.com. It can be account-scoped (arn:aws:iam::111122223333:workload-identity-provider/name) or organization-scoped (arn:aws:iam::o-a1b2c3d4e5:workload-identity-provider/name). The scheme cannot be changed later, and a NONE provider only produces AWS role sessions, not JWTs or certificates.
  • Template. Builds each workload's name from attested facts. AWS publishes read-only template definitions so you do not hand-write path patterns.
  • Attestation policy. On the template; decides which AWS service can vouch for the workload and which facts must match. No attestation policy, no identity.

What happens at runtime

Each time a workload needs a fresh role session, the hosting service collects facts, sends them to STS with the template reference, STS evaluates the attestation policy, builds the identifier and returns a signed context, and the service calls AssumeRole with it. The facts differ by platform:

Platform Attested facts
Amazon EKS Cluster name and ARN, namespace, service account, pod name and UID, node name
AgentCore Runtime Runtime name, ID, version, session ID
AgentCore Gateway Gateway name and ID

Your code does not attest itself. On EKS, the standard Pod Identity credentials now carry the identity, so the AWS SDKs need no change.

How this relates to IAM roles and STS

This is the part people get wrong in the first week, so be precise:

  • The role trust policy does not change. STS attaches the identity to the session of the role that EKS Pod Identity or AgentCore already assumes. An explicit Deny on sts:SetContext in a trust policy still applies.
  • An agent identity is not an IAM principal. You never put it in Principal. You match it in Condition with aws:OriginIdentity/Subject and aws:OriginIdentity/Issuer.
  • The keys follow role chaining, unchanged, within one AWS Organization (or one account if you have no organization). Assume a role in a different organization and the keys are dropped.
  • It is a sibling of trusted identity propagation (TIP), which carries a human federated identity through role hops. Both use the same aws:OriginIdentity keys; a session carries one or the other, never both. AWS extended TIP to IAM federation the same week, so aws:OriginIdentity/SubjectType (workload or user) is the key that tells them apart.
  • Workloads without an association behave exactly as before. Nothing breaks when you turn this on for one service.

The session can also yield two credentials for use outside AWS. A JWT-SVID is a short-lived bearer token whose sub is the SPIFFE ID, verified by the relying party against your provider's JWKS. An X.509-SVID is a certificate for mutual TLS, signed by an AWS Private CA that you attach. If you have already replaced static keys in CI with GitHub Actions OIDC federation to AWS, the JWT-SVID is the same idea in reverse: AWS is now the issuer, and other systems trust it.

Setting up AWS IAM for agents on EKS

The following is condensed from AWS's getting started guide. It gives one EKS workload (checkout-sa in namespace payments on cluster prod-cluster-1) its own identity, restricts an S3 bucket to that workload, and then mints a JWT for an external API. I have not run it; the preview APIs were not available in an account I could test with, so treat the commands as AWS-documented rather than verified by me.

Prerequisites

  • An EKS cluster where the workload already uses EKS Pod Identity, with the eks-pod-identity-agent add-on at v1.5.0-eksbuild.3 or later. On EKS Auto Mode, nodes need an Auto Mode AMI released on or after November 18, 2026.
  • An AWS CLI released on or after December 1, 2026.
  • IAM permissions including iam:CreateWorkloadIdentityProvider, iam:CreateWorkloadIdentityTemplate, iam:PutWorkloadIdentityTemplateAttestationPolicy, iam:PassWorkloadIdentityTemplate and eks:UpdatePodIdentityAssociation.

Step 1: create the provider and template

In the IAM console, open Agent and workload identity, choose Create a provider, name it payments-prod, keep the default SPIFFE scheme, and scope it to the account. The console generates the trust domain <account-id>.aws.internal. Under Templates, add the Amazon EKS card and name it eks-prod-1. IAM creates the provider with two JWT signing keys (RS256 and ES384), so JWT-SVIDs work immediately.

Step 2: attach the template to the Pod Identity association

aws eks update-pod-identity-association \
  --cluster-name prod-cluster-1 \
  --association-id <association-id> \
  --workload-identity-config '{
    "enabled": true,
    "templateArn": "arn:aws:iam::111122223333:workload-identity-template/eks-prod-1",
    "providerArn": "arn:aws:iam::111122223333:workload-identity-provider/payments-prod"
  }'

Both ARNs are required; EKS rejects an update with only one. Restart the pods so they pick up new credentials. The pod's role session now carries aws:OriginIdentity/Subject = spiffe://111122223333.aws.internal/us-east-1/eks/prod-cluster-1/ns/payments/sa/checkout-sa.

Step 3: scope a bucket to one workload, not one role

This is the payoff. Two workloads share eks-pod-identity-role; only checkout-sa may read the bucket:

{
  "Version": "2012-10-17",
  "Statement": [{
    "Sid": "AllowCheckoutWorkload",
    "Effect": "Allow",
    "Principal": "*",
    "Action": "s3:GetObject",
    "Resource": "arn:aws:s3:::amzn-s3-demo-bucket/*",
    "Condition": {
      "StringEquals": {
        "aws:PrincipalAccount": "111122223333",
        "aws:OriginIdentity/Subject": "spiffe://111122223333.aws.internal/us-east-1/eks/prod-cluster-1/ns/payments/sa/checkout-sa",
        "aws:OriginIdentity/Issuer": "arn:aws:iam::111122223333:workload-identity-provider/payments-prod"
      }
    }
  }]
}

Three details from the docs that will save you an afternoon:

  1. Always match Subject and Issuer together. An identifier is unique only within its provider; another provider can mint the same path.
  2. Use StringEquals, not ArnEquals, for the issuer, even though it looks like an ARN. The key can also carry non-ARN issuers from TIP, and an ARN operator might silently not apply.
  3. Keep aws:PrincipalAccount (or aws:PrincipalOrgID). S3 Block Public Access decides "public" from a fixed list of condition keys, and the new identity keys are not on it. A policy with "Principal": "*" limited only by identity keys is treated as public and rejected.

An Allow alone does not stop the other workload if the shared role already has s3:GetObject in its identity policy. AWS's guide adds explicit Deny statements with StringNotEquals on the subject and issuer. The safer production pattern from the access control page adds a Null guard so the deny only applies to sessions that carry a workload identity, which keeps it from locking out your admins and federated humans:

{
  "Sid": "DenyWorkloadsOutsideCluster",
  "Effect": "Deny",
  "Principal": "*",
  "Action": "s3:*",
  "Resource": ["arn:aws:s3:::amzn-s3-demo-bucket", "arn:aws:s3:::amzn-s3-demo-bucket/*"],
  "Condition": {
    "Null": { "aws:OriginIdentity/WorkloadIdentityTemplateArn": "false" },
    "StringNotLike": { "aws:OriginIdentity/Subject": "spiffe://111122223333.aws.internal/us-east-1/eks/prod-cluster-1/*" }
  }
}

If you want the inverse (only identified workloads may use a role at all), add conditions on sts:RequestContextProviders to the trust policy with ForAllValues:StringEquals and a Null check set to "false". ForAllValues alone matches a request with no context, which is the classic empty-set trap. If a scoped bucket starts returning 403s after you add statements like these, our S3 Access Denied decision tree shows which policy layer denied the call.

Step 4: mint a JWT for a non-AWS API

Give the role permission to request credentials only for its own identity:

{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Action": ["sts:GetWebIdentityToken", "sts:GetCertificate"],
    "Resource": "*",
    "Condition": {
      "StringEquals": {
        "aws:OriginIdentity/Subject": "spiffe://111122223333.aws.internal/us-east-1/eks/prod-cluster-1/ns/payments/sa/checkout-sa"
      }
    }
  }]
}

Then, from inside the pod:

TOKEN=$(aws sts get-web-identity-token \
  --token-type JWT_SVID \
  --audience https://api.example.com \
  --signing-algorithm RS256 \
  --duration-seconds 900 \
  --query WebIdentityToken --output text)

# Print the claims only, never the token itself
payload=$(printf '%s' "$TOKEN" | cut -d. -f2 | tr '_-' '/+')
case $(( ${#payload} % 4 )) in 2) payload="$payload==" ;; 3) payload="$payload=" ;; esac
printf '%s' "$payload" | openssl base64 -d -A; echo

I ran the decoding half locally against a hand-built token to confirm the padding logic works in bash and zsh; for one-off inspection the Base64 encoder/decoder does the same on the payload segment. The token's lifetime is 60 to 3,600 seconds (default 300) and cannot outlive the role session. It contains only sub, aud, iss, iat, exp and jti; custom claims and session tags are not included. The external service fetches <issuer>/.well-known/openid-configuration, verifies the signature and aud, and authorizes on sub. On EKS, SPIFFE libraries can instead use the Workload API socket that EKS mounts at /var/run/secrets/pods.eks.amazonaws.com/workloadidentity/agent.sock (exposed as SPIFFE_ENDPOINT_SOCKET).

For mTLS, attach an AWS Private CA as the provider's outbound signer and call aws sts get-certificate with a CSR. Two gotchas: the CA starts signing about an hour after you attach it, and certificates cannot be revoked, so use short lifetimes (3,600 to 43,200 seconds, default 12 hours) and renew at half-life. Private CA charges apply even though the identity feature is free in preview.

Step 5: find the agent in CloudTrail

The AssumeRole event and every subsequent call made with that session carry userIdentity.onBehalfOf with subject, issuer and workloadIdentityTemplateArn. If your trail goes to CloudWatch Logs, this Logs Insights query returns everything one workload did across sessions and refreshes:

fields eventTime, awsRegion, eventSource, eventName, errorCode
| filter userIdentity.onBehalfOf.subject = "spiffe://111122223333.aws.internal/us-east-1/eks/prod-cluster-1/ns/payments/sa/checkout-sa"
    and userIdentity.onBehalfOf.issuer = "arn:aws:iam::111122223333:workload-identity-provider/payments-prod"
| sort eventTime asc

CloudTrail Event history has no filter on onBehalfOf, so in the console you start from the AssumeRole event and follow the access key ID. Identities are not stored as IAM records, so CloudTrail is the only inventory you get.

Agent identity on Bedrock AgentCore

For agents hosted on AgentCore Runtime, AgentCore attests the agent, so there is nothing to install. The constraints worth knowing before you plan:

  • You can only turn it on when you create a runtime or gateway during the preview; existing ones cannot be retrofitted.
  • The runtime must use platform version V2 or the Instances compute type, and your agent code must use a current AgentCore SDK.
  • Whoever creates the runtime needs iam:PassWorkloadIdentityTemplate with iam:PassedToService = bedrock-agentcore.amazonaws.com, or CreateAgentRuntime fails with AccessDeniedException.
  • Identifiers look like spiffe://<account>.aws.internal/<region>/bedrock-agentcore/runtime/<runtime-name>/<runtime-id>, optionally with /<session-id>. The runtime ID means a re-created runtime does not inherit the old one's grants; to cover re-creations, grant .../runtime/claims_processor/*.
  • AgentCore Gateway gets JWT-SVIDs only, not certificates.

The per-session template is the interesting one for agents. With it, each conversation gets a distinct identity, so CloudTrail can answer "which session deleted that object," not just "which agent."

Where Credential Broker and Greenlight fit

Agent identity covers AWS calls and anything that accepts SPIFFE or OIDC. Most agents also call SaaS APIs that do neither. That is Credential Broker's job: it supports client-credentials, authorization-code and token-exchange (on-behalf-of) OAuth flows plus API keys, keeps the long-lived secret, and hands your code short-lived tokens. When an agent acts for a user, it gets that user's access, not a service superuser's.

Greenlight works one layer up. It writes tool-call policies in Dogwood, an open-source policy language for agents, replays your agent's recorded calls to show what a policy would have blocked, and uses automated reasoning to check properties such as "no refund over $500 without a prior approval call." It runs inside Kiro, Claude Code or Codex and enforces through an AgentCore Gateway policy engine or a Strands Box, available in seven Regions in preview. IAM still cannot express "only after step X," which is the gap Greenlight targets. If you are building tool servers for agents yourself, our guide on how to build an MCP server covers where those tool boundaries live.

What to do now

You do not need to migrate anything; workloads without an association behave as before. A sensible sequence:

  1. Inventory shared roles. List IAM roles assumed by more than one workload (multiple Pod Identity associations, or AgentCore runtimes sharing an execution role). Those are where attribution is weakest today and where this feature pays off first.
  2. Decide the naming root before you create anything. The trust domain and scheme are permanent per provider. For multi-account setups, an organization-scoped provider gives every account the same naming structure, with path prefixes assigned per member account.
  3. Pilot on one non-production EKS namespace. Upgrade the Pod Identity Agent add-on first; it is the most likely thing to be out of date.
  4. Start with audit, then enforce. Turn on identity, confirm onBehalfOf appears in CloudTrail, build the Logs Insights query into your dashboards, and only then add subject-scoped resource policies.
  5. Replace one static secret. Pick an internal API that currently takes a shared API key from a service, and have it verify JWT-SVIDs against your provider's JWKS instead. This is the clearest win for zero-trust service-to-service authentication.
  6. Do not put preview identity in a critical deny path yet. A deny that depends on a preview feature can turn an AWS-side change into your outage. Use it for allow-scoping and audit until general availability.

Frequently Asked Questions

Does AWS IAM for agents replace IAM roles?

No. The role still defines permissions; the agent identity is added to the role session to say which workload is using it. The role's trust policy does not change, and an agent identity cannot be used as a Principal. You reference it with the aws:OriginIdentity/Subject and aws:OriginIdentity/Issuer condition keys.

Which compute services support agent and workload identity?

In the December 2026 preview: Amazon EKS through Pod Identity (add-on v1.5.0-eksbuild.3 or later), Amazon Bedrock AgentCore Runtime, and AgentCore Gateway. Lambda, ECS and EC2 are not listed as attesting services in the preview documentation.

How much does IAM agent identity cost?

Agent and workload identities are offered at no additional charge during the preview, according to the IAM User Guide. If you attach AWS Private CA to issue X.509 certificates, Private CA's normal charges for the CA and issued certificates apply. Credential Broker is also free during its preview.

Is the agent identity a SPIFFE ID?

With the SPIFFE scheme, yes: identifiers start with spiffe:// and your trust domain, JWT-SVIDs and X.509-SVIDs follow the SPIFFE standard, and on EKS a SPIFFE Workload API socket is mounted into the pod. A provider created with the NONE scheme produces plain identifiers and only AWS role sessions.

How is this different from EKS Pod Identity or IRSA?

Pod Identity and IRSA decide which IAM role a pod gets. Agent and workload identity is an extra layer on Pod Identity that adds a verified, per-workload name to that role session, which lets resource policies and CloudTrail distinguish workloads that share one role. It also issues JWTs and certificates for use outside AWS.

Bottom Line

AWS IAM for agents fixes a long-standing gap: shared roles made every agent look the same to policies and to CloudTrail. The preview design is sensible because it adds identity to the existing role session instead of inventing a new principal type, so nothing you have today breaks. Pilot it on one EKS namespace or one new AgentCore runtime, prove you can trace a single agent end to end in CloudTrail, and use JWT-SVIDs to retire one static API key. Hold off on making preview identity load-bearing in deny policies until it reaches general availability.