Manage workload identity providers
Agent and workload identity is in preview release for AWS Identity and Access Management (IAM) and is subject to change.
A workload identity provider is the identity provider for your agents and workloads, the way your corporate identity provider is for your employees. It issues an identity after attestation, not after a password check. It sets the scheme and trust domain that every identifier starts with, and it holds the keys that sign JWTs. It publishes standard OIDC discovery and SPIFFE bundle endpoints, and any service that supports either standard can verify its credentials without an AWS account. Every template belongs to exactly one provider.
Most organizations need one organization-level provider. Every account then shares one trust domain, one set of signing keys, and one naming structure, and your central identity team decides which account can use which names. Accounts and path prefixes keep workloads apart under it. Create another provider only when a group of workloads needs its own trust domain or its own signing keys, for example a service mesh. Use an account-level provider to try the feature or for a single account.
An account can have up to 50 providers, and an organization can have up to 5 organization-level providers.
Topics
Choose a scheme and trust domain
You choose the scheme and trust domain when you create the provider. You can't change them later, because every identifier and every policy that names those identifiers depends on them.
Scheme |
Identifier format |
Trust domain |
Use when |
|---|---|---|---|
SPIFFE |
|
Required |
Your workloads authenticate to services outside AWS, or you want identifiers that follow an open standard. |
NONE |
|
Not allowed |
You use the identity only in AWS policies and CloudTrail, and you want plain names without a |
A NONE provider has no signing keys and publishes no trust bundle, so its workloads receive only AWS role sessions. To issue JSON Web Token SPIFFE Verifiable Identity Documents (JWT-SVIDs) or X.509 SPIFFE Verifiable Identity Documents (X.509-SVIDs), use a SPIFFE provider.
Trust domain rules:
Up to 64 characters, made of labels of up to 63 characters each, separated by single periods. Each label uses lowercase letters, digits, and hyphens, and doesn't start or end with a hyphen. The trust domain doesn't start or end with a period. IAM rejects a trust domain that breaks these rules. It doesn't correct it.
Unique among the providers in the same account. For an organization-level provider, the account is the management account.
If you don't have a trust domain, keep the one that the IAM console offers:
<account-id>.aws.internalfor an account-level provider, or<organization-id>.aws.internalfor an organization-level provider. The console offers the same default every time. For a second provider in the same account or organization, enter your own trust domain. The .internal top-level domain is reserved for private use and never appears in public DNS.
You don't verify a trust domain. Your workloads can receive identities, JWT-SVIDs, and X.509-SVIDs as soon as you create the provider, because credentials are signed with your provider's own keys.
Choose account scope or organization scope
|
Account-level provider |
Organization-level provider |
|---|---|---|
Created in |
Any account |
The management account or a delegated administrator account |
ARN |
|
|
Prerequisite |
None |
Turn on organization-level IAM resources, once, from the management account. See Create a workload identity provider. |
Accounts that can create templates under it |
The provider's account |
The provider's account, and member accounts under the path prefixes that the provider's resource policy assigns them |
Best for |
A single account, or trying the feature |
One trust domain and one set of signing keys across many accounts |
In these examples, 111122223333 is an AWS account ID and o-a1b2c3d4e5 is an organization ID.
View providers
Console
Open the IAM console at https://console.aws.amazon.com/iam/agent-workload-identity/
. In the navigation pane, choose Agent and workload identity. The console lists your providers, or shows Get started if you don't have one.
Choose a provider name. The provider has four pages: Provider summary, Templates, Outbound signer, and Provider settings. Outbound signer appears only for providers that use the SPIFFE scheme, not for providers that use NONE. Provider summary shows the name, description, scope, format, ARN, and creation time, with cards to add templates, issue JWTs, attach a certificate authority, and add tags. Provider settings shows the provider's tags, the governance section, the Default permissions without a policy table, and the option to delete it.
AWS CLI
List the providers in your organization, then in your account:
aws iam list-workload-identity-providers --resource-scope ORGANIZATION aws iam list-workload-identity-providers --resource-scope ACCOUNT
Get one provider, including its signers:
aws iam get-workload-identity-provider \ --workload-identity-provider-arn arn:aws:iam::111122223333:workload-identity-provider/payments-prod
A member account can read and list its organization's providers with identity-based permissions alone.
AWS API
IAM API Reference: ListWorkloadIdentityProviders, GetWorkloadIdentityProvider
Delete a provider
You can't update a provider. To change its name, scheme, trust domain, or description, create a new provider.
Prerequisites
IAM deletes a provider only when no template references it and it has no X.509 signer entry. Complete these steps first:
Delete every template that references the provider. For an organization-level provider, this includes templates that member accounts created under it. While any template references the provider, the delete fails with DeleteConflict. To stop a member account from creating new templates while it cleans up, remove the iam:AssociateWorkloadIdentityTemplate action for that account from the provider's resource policy and keep iam:DisassociateWorkloadIdentityTemplate.
Delete every X.509 signer entry on the provider, including retired entries. The delete also fails while the provider has any X.509 signer entry. To find every entry, run
aws iam list-workload-identity-provider-outbound-signers. To delete an entry that is signing or waiting to sign, disable it first. For more information, see Configure signing and the trust bundle.
You don't delete the JWT signer that AWS provides. IAM removes it with the provider.
When you delete a provider:
IAM deletes the provider, its resource policy, and its JWT signer. Deletion runs asynchronously. The delete call returns a DeletionTaskId, which you can use to check the deletion status.
Its public keys stay published on its trust bundle endpoints for 12 hours, so credentials issued just before the delete still verify until they expire.
After the deletion completes, you can use the provider name and trust domain again. A new provider with the same name receives a new provider ID and new endpoints.
You can't restore a deleted provider.
Console
In the IAM console navigation pane, choose Agent and workload identity, and then choose the provider name.
Choose Provider settings, and then choose Delete provider.
If the dialog box lists templates or a certificate signer that you must delete first, delete them, and then start again. Otherwise, select each check box to confirm the effects, enter the provider name, and then choose Delete.
AWS CLI
aws iam delete-workload-identity-provider \ --workload-identity-provider-arn arn:aws:iam::111122223333:workload-identity-provider/payments-prod
The response includes a DeletionTaskId. To check the status of the deletion:
aws iam get-workload-identity-provider-deletion-status --deletion-task-id <DeletionTaskId>
AWS API
IAM API Reference: DeleteWorkloadIdentityProvider, GetWorkloadIdentityProviderDeletionStatus