eks-auth:AssumeRoleForPodIdentity

Read

eks-auth:AssumeRoleForPodIdentity is a Read access-level action in the eks-auth service. Grants permission to exchange a Kubernetes service account token for temporary AWS credentials

Resource types

ARNs that eks-auth:AssumeRoleForPodIdentity can be scoped to in an IAM policy.

arn:${Partition}:eks:${Region}:${Account}:cluster/${ClusterName}
cluster

Condition keys

Keys you can use in the Condition block of a policy that grants eks-auth:AssumeRoleForPodIdentity.

aws:ResourceTag/${TagKey} String

Filters access by a tag key and value pair

Example IAM policy

A minimal policy that allows eks-auth:AssumeRoleForPodIdentity. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowEksauthAssumeRoleForPodIdentity",
      "Effect": "Allow",
      "Action": "eks-auth:AssumeRoleForPodIdentity",
      "Resource": "*"
    }
  ]
}