AWS IAM for Agents vs GetScopedCredentials vs AgentCore Identity: Which Does What?

AWS IAM for Agents vs GetScopedCredentials vs AgentCore Identity: Which Does What?

AWS IAM for Agents vs GetScopedCredentials vs AgentCore Identity: Which Does What?

Within two weeks, AWS shipped three identity features that all promise to make AI agents safer, and their names overlap enough to confuse anyone designing an agent platform. STS GetScopedCredentials arrived on November 19, 2026. IAM Credential Broker followed on November 29. On December 1, at re:Invent, AWS announced agent and workload identity under the AWS IAM for Agents banner.

Meanwhile Amazon Bedrock AgentCore Identity already had its own “workload identities”, its own token vault and its own OAuth flows. The result is a real design question: do these replace each other, or stack? They stack, but only if you split the problem the right way. This comparison maps each feature to one question an authorization decision must answer, shows where they overlap, and walks through the failure modes that appear when teams use one layer to do another layer’s job.

What this covers: a side-by-side comparison table, a three-question layered model with a reference architecture, the verified mechanics of each feature, a decision matrix, CloudTrail audit queries, and the confused-deputy and token-passthrough traps.

Context and Background

Until recently, AWS had one answer to “who is this agent?”: whatever IAM role it ran under. An agent on Amazon Elastic Kubernetes Service (EKS) got a role through EKS Pod Identity. An agent on AWS Lambda got its execution role.

That works for permissions, but it fails at attribution. If forty agents share one role, CloudTrail shows forty identical assumed-role sessions, and a resource policy cannot tell the billing agent from the support agent. Teams compensated with one role per agent, which multiplies trust policies, or with session tags, which nobody enforces consistently.

The second gap was delegation. An agent acting for a person needs two things at once: proof of which agent it is and proof of which user it serves. OAuth 2.0 token exchange (RFC 8693) and on-behalf-of flows are the industry tools here.

We covered that protocol layer in depth in AI agent identity and delegated authorization with OAuth token exchange. AWS’s first managed answer was AgentCore Identity, launched with Amazon Bedrock AgentCore in 2025, which added an agent identity directory, a token vault and OAuth credential providers for third-party APIs.

The third gap was granularity of permission. Even with a good role, every sub-agent and tool inherited the full role. The November 19 What’s New post introduced GetScopedCredentials to narrow credentials the caller already holds. Our GetScopedCredentials how-to covers that API step by step, so this post treats it as one layer among three.

Then came re:Invent. The AWS News Blog post “AWS builds for more ambitious agents” describes AWS IAM for Agents in one line: it “gives each agent an identity of its own”, building on existing IAM roles and policies. ITPro’s live coverage reported that “every single agent (and sub-agent) will now be given a verifiable identity with relevant credentials.”

The official documentation is more precise, and more interesting. “IAM for agents” is an umbrella page in the IAM User Guide with three features beneath it: agent and workload identity (preview), AWS IAM Credential Broker (preview), and enterprise-managed authorization for AI agents through AWS Sign-In. That umbrella structure of AWS IAM for Agents is the first thing to get right, because it already overlaps with AgentCore Identity.

The Comparison at a Glance

Before the mechanics, here is the short answer in one table. Status and availability are taken from the AWS pages as of December 2, 2026.

Dimension AWS IAM for Agents: agent and workload identity STS GetScopedCredentials Bedrock AgentCore Identity
Question it answers Which agent is calling? What may it do right now? On whose behalf, and with which third-party credential?
What it produces A SPIFFE-style name attached to an IAM role session, plus JWT-SVIDs and X.509-SVIDs A narrower, optionally shorter copy of the caller’s temporary credentials Workload access tokens, OAuth tokens and API keys from a token vault
Changes permissions? No. The role still defines permissions Yes, only downward Not for AWS. Governs access to stored third-party credentials
Issued how AWS STS after the hosting service attests the workload STS API call by the session itself AgentCore Identity data plane APIs
Supported compute Amazon EKS, AgentCore Runtime, AgentCore Gateway Any temporary-credential session AgentCore Runtime and Gateway natively; self-hosted via APIs
Audit CloudTrail userIdentity.onBehalfOf on every call CloudTrail issuing event with ScopedSessionDescription CloudTrail for AgentCore API calls
Status Preview Available in all commercial Regions, GovCloud (US), European Sovereign Cloud and China Regions Generally available service
Price No additional charge in preview; AWS Private CA billed if used No separate charge stated Per AgentCore pricing; not restated here

Two more IAM features sit beside these. IAM Credential Broker, in preview since November 29, 2026, fetches OAuth tokens and API keys for external systems, which overlaps heavily with the AgentCore Identity token vault. Enterprise-managed authorization (EMA) lets an enterprise identity provider authorize agents to call the AWS MCP Server for employees. Both appear in the reference architecture below.

AWS IAM for Agents: A Three-Question Reference Architecture

AWS IAM for Agents is the umbrella for agent and workload identity, IAM Credential Broker and enterprise-managed authorization. Its core preview feature gives each agent an attested, SPIFFE-compliant identity attached to an IAM role session. It answers which agent is calling. GetScopedCredentials answers what it may do now, and AgentCore Identity answers on whose behalf outside AWS.

AWS IAM for Agents reference architecture: attested agent identity on the role session, GetScopedCredentials narrowing sub-agent credentials, and AgentCore Identity or Credential Broker supplying third-party OAuth tokens, all audited in CloudTrail

Figure 1: The three-question model. Identity comes from attestation, permission from the role narrowed by scoping, and delegation from a token vault. CloudTrail ties all three together.

Figure 1 shows the target shape for an agent platform on AWS. A hosting service such as AgentCore Runtime attests the agent to STS, which returns a role session that carries the agent’s identity. The orchestrator narrows that session for each sub-agent with GetScopedCredentials.

When a tool needs Salesforce or GitHub, the agent asks AgentCore Identity or Credential Broker for a token bound to the right user. Every step lands in CloudTrail, where the agent’s identity appears on each AWS call.

Question one: who is the agent? Attested identity on the role session

The IAM User Guide describes the AWS IAM for Agents identity model plainly. IAM “acts as an identity provider for your AI agents and workloads.” Each workload gets “a name that you choose, in a name space that you own,” with no password or API key behind it. AWS issues the name only after the service that runs the workload attests where it runs, which version runs, and which instance or session it is.

The key design choice is that the identity adds to a role session rather than replacing it. In the documentation’s words, “The role defines what the workload can do, and the identity says which workload is using the role.” This is why the trust policy of an existing role does not need to change. STS simply attaches the identity to the session of the role that the service already assumes.

Names follow the Secure Production Identity Framework for Everyone (SPIFFE). An identifier has three parts: a naming root from the provider, such as spiffe://corp.example.com; a path prefix that you or your organization’s identity administrator owns, such as retail-payments; and a path pattern rendered by a template from attested facts. The documented example is spiffe://corp.example.com/retail/eks/prod-cluster-1/ns/payments/sa/checkout. The full identifier is capped at 256 characters and is case-sensitive.

What gets attested depends on the hosting service. Amazon EKS reports cluster name and ARN, namespace, service account, pod name and UID, and node name. AgentCore Runtime reports runtime name, ID, version and session ID.

AgentCore Gateway reports gateway name and ID. That runtime session ID is what makes per-session agent identity possible, which is the closest verified mechanism behind the “every sub-agent” claim in press coverage. If each sub-agent runs as its own runtime session, each can carry a distinct name.

Question two: what may it do right now? Role permissions, narrowed

Agent identity does not grant anything. Permissions still come from the role’s identity policies, permissions boundaries, service control policies (SCPs) and resource policies, evaluated the way our guide to AWS IAM policy evaluation logic and permission boundaries describes. What changes is that policies can now condition on the identity using aws:OriginIdentity/Subject and aws:OriginIdentity/Issuer.

That still leaves a coarse grain. An orchestrator with a broad role hands the same session to every tool unless you do something about it. GetScopedCredentials is that something.

It takes temporary credentials the caller holds and returns new ones whose effective permissions are the intersection of the caller’s permissions and a scope-down policy of up to 2,048 characters. It never changes identity: principal ARN, role session name, session tags and source identity are all preserved. It can be applied recursively, up to three policy layers per session.

The two features therefore compose naturally. Identity tells a resource policy which agent is asking. Scoping guarantees that even the right agent can only do what the current task needs. Neither substitutes for the other, because identity without scoping still permits the whole role, and scoping without identity still leaves every sub-agent anonymous inside one session ARN.

Question three: on whose behalf? Tokens for users and third parties

AWS credentials do not open Jira, Slack or Snowflake. Those systems need OAuth tokens or API keys, and when a user is involved, the token must be the user’s delegated grant, not a shared service account. AgentCore Identity’s token vault stores OAuth 2.0 tokens, client credentials and API keys, encrypted with AWS Key Management Service (KMS) keys. Its terminology page states that the vault ensures “credentials can only be accessed by the specific agent and user combination that originally obtained them.”

IAM Credential Broker does a very similar job from the IAM side. It obtains, refreshes, caches and vaults OAuth tokens and API keys for external systems, supporting client credentials, authorization code and token exchange grants. The agent calls it with its own SigV4-signed IAM credentials, and for user-acting flows the role session must carry the user’s identity through trusted identity propagation. So “on whose behalf” now has two AWS-managed answers, which is the biggest overlap in this whole space.

Walk-through: How Each Layer Works in Practice

The architecture is easier to trust once you see the actual calls behind AWS IAM for Agents and its neighbours. This section traces each layer at the API level, then combines them into a decision matrix.

Identity issuance: attestation, context, AssumeRole

Setup is a one-time job per account or organization. You create a workload identity provider, which sets the scheme (SPIFFE or NONE, fixed at creation) and the trust domain. You create a template that builds names from attested facts, and you attach an attestation policy, because “without an attestation policy, no agent and workload identity is issued.” Finally you point compute at the template, for example on an EKS Pod Identity association (Pod Identity Agent add-on v1.5.0-eksbuild.3 or later) or when creating an AgentCore runtime or gateway.

AWS IAM for Agents identity issuance sequence: AgentCore Runtime attests the agent to STS, receives a signed context, assumes the role, and calls S3 with the agent identity recorded in CloudTrail

Figure 2: Runtime issuance. The platform, not the agent, attests. STS checks the attestation policy, returns a short-lived signed context, and the role session carries the identity into every call.

Figure 2 traces the runtime flow from the IAM User Guide. The hosting service collects facts and sends them to STS with the template reference. STS evaluates them against the attestation policy, builds the name, and returns a signed context for one IAM role, valid for 60 to 300 seconds according to the logging guide’s error notes.

The service then calls AssumeRole with that context. CloudTrail records an IssueWorkloadIdentityContext event and an AssumeRole event that share a request ID.

The important property is who does the attesting. “Your application doesn’t attest itself,” the guide says. A prompt-injected agent cannot claim to be the payments agent, because the name comes from the EKS control plane or the AgentCore control plane, not from anything the agent’s code or model output controls. That is a sharper guarantee than session tags, which whoever calls AssumeRole can set.

Once issued, the identity works through three credentials. The IAM role session (SigV4) calls AWS services. A JWT-SVID serves bearer-token calls to your own APIs and third parties, verified against the provider’s JSON Web Key Set.

An X.509-SVID serves mutual TLS (mTLS), signed by an AWS Private CA you attach. X.509-SVIDs last 12 hours by default, and a JWT-SVID never outlives the role session that requested it. Anyone already running SPIFFE through SPIRE will recognise the shapes; our SPIFFE and SPIRE workload identity architecture post explains why they matter for zero trust.

Using identity in policy

The most useful pattern is a resource policy that names a workload in its Condition block rather than its Principal, because an agent identity is not an IAM principal. This statement, adapted from the IAM guide, allows one checkout workload to read a bucket:

{
  "Sid": "AllowCheckoutWorkload",
  "Effect": "Allow",
  "Principal": "*",
  "Action": "s3:GetObject",
  "Resource": "arn:aws:s3:::amzn-s3-demo-bucket/*",
  "Condition": {
    "StringEquals": {
      "aws:PrincipalOrgID": "o-a1b2c3d4e5",
      "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 in that policy are easy to get wrong. Always match Subject and Issuer together, because an identifier is unique only within its provider. Keep an organization or account condition next to "Principal": "*", or S3 Block Public Access treats the policy as public. When writing a Deny, add a Null check on aws:OriginIdentity/WorkloadIdentityTemplateArn, otherwise the statement also hits ordinary federated sessions that carry no workload identity.

The pre-deployment property is underrated. Because names are built from facts known before runtime, such as cluster, namespace and service account, a platform team can write grants before the agent ships. Where the name ends in a runtime value such as an AgentCore session ID, the guide recommends granting the stable prefix with a trailing wildcard. That gives you per-agent-type policy with per-session attribution in the logs.

Cross-account behaviour has limits. The identity carries to roles in the same account or another account in the same AWS Organization. When a workload assumes a role in a different organization, STS drops the identity keys. Federated partner access therefore falls back to classic role-based attribution.

Scoping sub-agents inside one identity

GetScopedCredentials then subdivides the session. An orchestrator running as spiffe://.../agentcore/research-orchestrator/<session> calls STS once per sub-agent with a scope-down policy, a DurationSeconds value from 1 to 129,600 seconds that cannot exceed its remaining lifetime, and a ScopedSessionDescription of up to 256 characters that CloudTrail records. The sub-agent’s keys can do only the intersection.

One verification gap matters here. The STS API reference and the IAM guide for GetScopedCredentials say principal, session name, tags, source identity and trusted identity propagation context are preserved. Neither page states whether the new onBehalfOf workload identity fields are preserved on scoped credentials. Logically, they should be, since scoped credentials are the same session, but test it in your own trail before you depend on it for incident response.

Delegation: AgentCore Identity’s three token paths

AgentCore Identity delegation flow: user JWT validated by the runtime authorizer, exchanged for a workload access token, then used to fetch user-bound OAuth tokens from the token vault for a SaaS API

Figure 3: AgentCore Identity delegation. The runtime validates the user’s JWT, binds it to the agent’s workload identity, and the vault releases only tokens for that agent and user pair.

Figure 3 shows how AgentCore Identity answers “on whose behalf”. Inbound, an AgentCore runtime accepts either IAM SigV4 (the default) or JWT bearer tokens configured through a customJWTAuthorizer with a discovery URL, allowed clients, audiences, scopes and required claims. A runtime supports one or the other, not both. After validating the JWT, Runtime calls GetWorkloadAccessTokenForJWT, which binds the agent’s workload identity to the user’s iss and sub claims, and passes the result to agent code in a WorkloadAccessToken payload header.

Outbound, the agent presents that workload access token to GetResourceOauth2Token. For a three-legged OAuth (3LO) flow, the first call returns an authorization URL, the user consents, and the vault stores and refreshes the token keyed by workload identity and user ID. The Python SDK hides this behind the @requires_access_token and @requires_api_key decorators. Built-in providers cover services such as Google, GitHub, Slack, Salesforce and Atlassian Jira.

On-behalf-of token exchange removes the consent step where the downstream authorization server supports it. AgentCore Identity submits the inbound token as an RFC 8693 subject_token (grant TOKEN_EXCHANGE) or as an RFC 7523 assertion (JWT_AUTHORIZATION_GRANT), and the agent code never handles the raw inbound token or the client secret. The actor token can be machine-to-machine, none, or an AWS_IAM_ID_TOKEN_JWT obtained through sts:GetWebIdentityToken, which is the same STS action that issues JWT-SVIDs under the new IAM workload identity. That shared action is the strongest documented hint of how the two identity systems are meant to converge.

There is a fourth, weaker path. GetWorkloadAccessTokenForUserId and the X-Amzn-Bedrock-AgentCore-Runtime-User-Id header bind a caller-supplied opaque user ID instead of a verified JWT. The documentation is blunt: the platform “does not verify it against an authenticated end-user identity.”

It requires the separate bedrock-agentcore:InvokeAgentRuntimeForUser permission, and AWS recommends JWTs for production. Treat that action as privileged and deny it by default.

AgentCore Identity vs AWS IAM for Agents: two workload identities, one name

AgentCore Identity has had its own workload identity concept since 2025: a directory entry with an ARN of the form arn:aws:bedrock-agentcore:region:account:workload-identity/directory/default/workload-identity/agent-name, created automatically by Runtime and Gateway or manually with CreateWorkloadIdentity. Its job is to anchor token-vault access. The new IAM agent and workload identity is a different object: a SPIFFE identifier on an STS role session, governed by IAM providers and templates. AgentCore Runtime and Gateway are among the first services that can attest for it.

So an agent on AgentCore Runtime in December 2026 can hold both. Its AgentCore workload identity ARN unlocks its tokens in the vault. Its IAM SPIFFE identity rides on its AWS role session and appears in CloudTrail and resource policies.

AWS has not yet published a page that reconciles the two, so expect naming collisions in tickets and design reviews. Use precise terms: “AgentCore workload identity” for the vault anchor, “IAM agent identity” for the attested SPIFFE name.

The AWS IAM for Agents decision matrix

Scenario Primary layer Supporting layers Why
Forty agents share one EKS role and you cannot tell them apart in logs IAM agent and workload identity None required Attestation adds a name to each session without new roles or trust-policy changes
Orchestrator fans out to retrieval, analysis and writer sub-agents GetScopedCredentials IAM agent identity for attribution Per-sub-agent narrowing without role chaining; the identity names the orchestrator run
Agent reads a user’s Google Drive or Jira with consent AgentCore Identity 3LO JWT inbound authorizer Vault keys tokens by agent and user; consent handled by the SDK
MCP server must call a downstream API as the signed-in user AgentCore Identity on-behalf-of exchange Inbound JWT authorizer RFC 8693 or RFC 7523 exchange avoids passing the user’s token through
Agents on EKS need Snowflake or Databricks tokens, no AgentCore IAM Credential Broker IAM agent identity IAM-native broker; preview, no extra charge during preview
Employees use an AI assistant to operate AWS through the AWS MCP Server Enterprise-managed authorization IAM role guardrails, SCPs IdP issues ID-JAG; AWS Sign-In exchanges it for an up-to-one-hour token tied to a role
A service mesh needs mTLS between agents and tools IAM agent identity X.509-SVID AWS Private CA Standard SPIFFE certificates, verifiable without AWS credentials
Batch job holds IAM user keys and spawns agents GetSessionToken, then GetScopedCredentials Migrate to roles GetScopedCredentials rejects IAM user and root credentials

Decision flow for agent identity on AWS: choose IAM agent identity for attribution, GetScopedCredentials for sub-agent narrowing, AgentCore Identity or Credential Broker for third-party tokens, and EMA for employee access to the AWS MCP Server

Figure 4: Pick the layer by the question you are answering. Most production agents end up using three of the four paths.

Figure 4 turns the matrix into a path. Start by asking whether the problem is attribution, permission or delegation. Attribution routes to IAM agent identity.

Permission routes to the role, then to GetScopedCredentials for anything finer than the role. Delegation routes to AgentCore Identity when you already run on AgentCore, or to Credential Broker when you run elsewhere and accept a preview dependency.

Capacity and cost notes

The money side is mostly favourable. The AWS IAM for Agents identity feature costs nothing extra during preview, and the only metered component is AWS Private CA when you issue X.509-SVIDs, which charges for the certificate authority and the certificates. Credential Broker is also free during preview.

GetScopedCredentials has no separate charge in its announcement. The real cost lands in CloudTrail: data events for S3 or DynamoDB, which you need to see what sub-agents touched, are billed per event, so per-agent audit is a logging-budget decision, not an identity-budget one.

Session refresh also matters for log volume. The logging guide notes that hosting services refresh sessions regularly, and each refresh creates a new AssumeRole event with a new access key ID. A fleet of thousands of short agent sessions generates a steady stream of issuance events in addition to the API calls themselves. Size your log pipeline for issuance plus usage, and build queries on onBehalfOf.subject rather than access keys where possible.

Auditing across all three layers

The single most valuable query after adoption is “everything this agent did.” With AWS IAM for Agents identity enabled, CloudTrail stamps userIdentity.onBehalfOf with subject, issuer and workloadIdentityTemplateArn on session creation and on calls made with the session. The IAM guide gives a CloudWatch Logs Insights query of this shape:

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

Layer the other two on top. For sub-agents, join GetScopedCredentials events, with their ScopedSessionDescription, to downstream events by access key ID. For delegation, AgentCore calls such as InvokeAgentRuntime with a runtimeUserId, and EMA’s CreateOAuth2Token events from signin.amazonaws.com, record which user and which agent client were involved. Together they answer the three questions for every action: which agent, with which scope, for which person.

Two operational notes from the guide will save time. Agent identities are not stored as IAM resources, so CloudTrail is the only inventory of which identities exist. And failed IssueWorkloadIdentityContext calls are recorded in the attesting service’s account, not yours, so a broken attestation policy shows up as an agent that cannot start, with little trace on your side.

Trade-offs, Gotchas, and What Goes Wrong

Identity is not authorization. The most likely mistake is to adopt AWS IAM for Agents and stop there. A named agent with an admin-shaped role is still an admin-shaped agent. Attribution improves incident response, but it does not shrink blast radius. Pair it with tight roles and GetScopedCredentials.

The confused deputy moves, it does not disappear. A confused deputy is a privileged component tricked into using its authority for a less-privileged caller. In agent systems the deputy is often an MCP server or gateway that holds broad credentials and acts on whatever a model asks. Our MCP server confused-deputy threat model covers the protocol side. On AWS, two documented controls help. Lock AgentCore runtimes behind their gateway with a resource policy that denies every principal except the gateway execution role, and constrain that role’s trust policy with aws:SourceArn and aws:SourceAccount. Then bind user tokens to verified JWTs rather than opaque user IDs, because a deputy that can set runtimeUserId freely can impersonate any user the vault knows.

Token passthrough is a design smell. AgentCore can forward the inbound Authorization header into agent code through a request-header allowlist. The docs warn to decode those claims only inside the trusted runtime and never to use unverified claims for authorization elsewhere. Forwarding a user’s bearer token to downstream APIs is worse still: the downstream service sees a token issued for a different audience, and any leak exposes the user’s full grant. Use on-behalf-of exchange so each hop gets an audience-specific token.

Revocation is coarse for scoped credentials. Scoped credentials inherit the parent session’s aws:TokenIssueTime, so the standard revoke-older-sessions control kills the parent and every child together. You cannot revoke one sub-agent that way. Keep scoped durations short and runs short.

KMS caching and resource policies. The IAM guide warns that some services cache KMS data keys without session context, so a scope-down that removes KMS permissions may not block recently accessed data. And for same-account access where a resource policy trusts "Principal": "*" or names the session, scoped credentials need both the identity policy and the scope-down to allow the action.

Preview risk is real. The two AWS IAM for Agents previews, agent identity and Credential Broker, are both “subject to change.” Template names, path prefixes and path patterns are immutable after creation, so a naming scheme you pick in preview may be one you live with. Two vaults, AgentCore’s and Credential Broker’s, also mean two places for secrets until AWS clarifies the roadmap.

Practical Recommendations

Treat AWS IAM for Agents as an attribution upgrade you can adopt cheaply, not a security model by itself. The fastest win is on EKS or AgentCore, where turning on agent identity requires no trust-policy changes and immediately makes CloudTrail say which agent made each call. Design the naming scheme first, because it is immutable: a path prefix per team, and templates that encode environment, cluster or runtime, and agent type. Put session IDs only at the end, where a wildcard can match them.

Then shrink permissions in two steps. Write roles per agent type, conditioned where useful on aws:OriginIdentity/Subject. Inside a run, mint per-sub-agent credentials with GetScopedCredentials and short durations, and record a structured ScopedSessionDescription. Strip sts:AssumeRole* and, at leaf level, sts:GetScopedCredentials from scoped policies so workers cannot mint or hop.

For delegation, pick one vault per platform. If agents already run on AgentCore Runtime, AgentCore Identity’s vault, JWT inbound authorizer and on-behalf-of exchange are the mature path. If agents run on EKS without AgentCore, evaluate Credential Broker but plan for preview churn.

In both cases, deny bedrock-agentcore:InvokeAgentRuntimeForUser unless a reviewed component needs it. Teams building their own audit trail should also read our lessons on AI agent audit logging and identity incidents.

  • [ ] Map every agent action to three questions: which agent, what scope, on whose behalf.
  • [ ] Create one organization-level workload identity provider; assign path prefixes per team.
  • [ ] Enable agent identity on EKS Pod Identity associations or AgentCore runtimes.
  • [ ] Add Subject plus Issuer conditions, and a Null guard on denies, to sensitive resource policies.
  • [ ] Scope sub-agents with GetScopedCredentials; cap durations with an SCP on sts:DurationSeconds.
  • [ ] Use JWT inbound auth and on-behalf-of exchange; avoid opaque user IDs in production.
  • [ ] Build CloudTrail queries on onBehalfOf.subject; verify it survives scoping in your trail.

Frequently Asked Questions

What is AWS IAM for Agents?

AWS IAM for Agents is the umbrella name in the IAM User Guide for three agent-focused capabilities. The headline one, agent and workload identity, announced in preview on December 1, 2026, gives each AI agent or workload an attested, SPIFFE-compliant identity attached to its IAM role session. The others are IAM Credential Broker, a preview service that fetches OAuth tokens and API keys for external systems, and enterprise-managed authorization, which lets an enterprise identity provider authorize agents to reach the AWS MCP Server for employees.

Does IAM agent identity replace per-agent IAM roles?

No. The identity adds to a role session; it does not replace the role. The role still defines what the agent can do, and the identity says which agent is using it.

That means many agents can share a role while staying distinguishable in CloudTrail and in resource policies through aws:OriginIdentity/Subject. You may still want a per-agent IAM role when agent types need genuinely different permissions. Agent identity removes the need for extra roles that existed only to tell agents apart.

How is AgentCore Identity different from IAM agent identity?

AgentCore Identity is a Bedrock AgentCore service focused on delegation: an agent identity directory, a token vault for OAuth tokens and API keys, inbound JWT authorization, and on-behalf-of token exchange for third-party APIs. IAM agent identity is an STS feature focused on attribution for AWS calls, issuing a SPIFFE name on the role session plus JWT-SVIDs and X.509-SVIDs. An agent on AgentCore Runtime can use both. The AgentCore workload identity unlocks vault tokens, while the IAM identity appears on AWS API calls.

How do sub-agents get their own credentials on AWS?

There are two documented routes. If each sub-agent runs as its own AgentCore runtime session or EKS pod, attestation can give each a distinct IAM agent identity, because session ID and pod facts feed the name template. If sub-agents run inside one orchestrator session, use GetScopedCredentials to mint narrower, shorter-lived credentials per sub-agent, up to three policy layers deep. Scoped credentials keep the parent’s identity, so add a ScopedSessionDescription to tell sub-agents apart in CloudTrail.

How do I audit what an AI agent did in CloudTrail?

With IAM agent identity enabled, CloudTrail records the agent’s SPIFFE identifier in userIdentity.onBehalfOf, alongside its issuer and template ARN, on the AssumeRole that created the session and on calls made with it. Filter on onBehalfOf.subject and onBehalfOf.issuer together in CloudWatch Logs Insights or CloudTrail Lake. If an event lacks the field, match its access key ID to the AssumeRole event. Enable data events for S3 or DynamoDB to see object-level actions, which carry extra CloudTrail cost.

Is AWS IAM for Agents generally available?

Not fully. As of December 2, 2026, agent and workload identity and IAM Credential Broker are both in preview, available in all commercial AWS Regions with no additional charge during the preview. AWS Private CA is billed if you issue X.509-SVIDs.

Agent identity works with Amazon EKS, AgentCore Runtime and AgentCore Gateway. GetScopedCredentials, by contrast, carries no preview label and is available across commercial, GovCloud (US), European Sovereign Cloud and China Regions. Re-check status pages before production rollout.

Further Reading

By Riju — about

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *