View a markdown version of this page

IAM: Manage agent and workload identity resources - AWS Identity and Access Management

IAM: Manage agent and workload identity resources

Preview release

Agent and workload identity is in preview release for AWS Identity and Access Management (IAM) and is subject to change.

This example policy lets an identity administrator create and manage workload identity providers and templates in an account, including their policies and signers. It also lets the administrator assign templates to resources (iam:PassWorkloadIdentityTemplate). It doesn't allow turning organization-level resources on or off. The acm-pca statement covers attaching, rotating, and removing an X.509 signer. IAM reads the certificate authority (CA), creates its association with the provider, and removes the association of a signer that is retired or deleted.

{ "Version": "2012-10-17", "Statement": [ { "Sid": "ManageWorkloadIdentityResources", "Effect": "Allow", "Action": [ "iam:CreateWorkloadIdentityProvider", "iam:GetWorkloadIdentityProvider", "iam:ListWorkloadIdentityProviders", "iam:DeleteWorkloadIdentityProvider", "iam:GetWorkloadIdentityProviderDeletionStatus", "iam:PutWorkloadIdentityProviderResourcePolicy", "iam:GetWorkloadIdentityProviderResourcePolicy", "iam:DeleteWorkloadIdentityProviderResourcePolicy", "iam:CreateWorkloadIdentityProviderOutboundSigner", "iam:UpdateWorkloadIdentityProviderOutboundSigner", "iam:DisableWorkloadIdentityProviderOutboundSigner", "iam:EnableWorkloadIdentityProviderOutboundSigner", "iam:ListWorkloadIdentityProviderOutboundSigners", "iam:CreateWorkloadIdentityTemplate", "iam:AssociateWorkloadIdentityTemplate", "iam:DisassociateWorkloadIdentityTemplate", "iam:GetWorkloadIdentityTemplate", "iam:ListWorkloadIdentityTemplates", "iam:DeleteWorkloadIdentityTemplate", "iam:PutWorkloadIdentityTemplateAttestationPolicy", "iam:GetWorkloadIdentityTemplateAttestationPolicy", "iam:DeleteWorkloadIdentityTemplateAttestationPolicy", "iam:PassWorkloadIdentityTemplate", "iam:TagWorkloadIdentityProvider", "iam:UntagWorkloadIdentityProvider", "iam:ListWorkloadIdentityProviderTags", "iam:TagWorkloadIdentityTemplate", "iam:UntagWorkloadIdentityTemplate", "iam:ListWorkloadIdentityTemplateTags" ], "Resource": "*" }, { "Sid": "ReadCaForX509Signer", "Effect": "Allow", "Action": [ "acm-pca:GetCertificateAuthorityCertificate", "acm-pca:DescribeCertificateAuthority", "acm-pca:CreateCertificateAuthorityAssociation", "acm-pca:DeleteCertificateAuthorityAssociation" ], "Resource": "arn:aws:acm-pca:us-east-1:111122223333:certificate-authority/*" } ] }

To let a platform team work only under its own path prefix, add a Condition on iam:WorkloadIdentityPathPrefix to the template actions. To deny deleting a CA signer, which immediately stops existing certificates from verifying, omit iam:DeleteWorkloadIdentityProviderOutboundSigner, as this example does.

For more examples, see Control access with agent and workload identity.