`InvalidIdentityToken: No OpenIDConnect provider found in your account for https://oidc.eks.ap-south-1.amazonaws.com/id/ABC123`
BeginnerTroubleshootingCloud identity: IRSA, Workload Identity and CI OIDC
Answer
Likely causes → The cluster's OIDC issuer was never registered as an IAM identity provider in this account, or it was registered in a different account than the role.
Diagnose →
aws eks describe-cluster --name prod --query cluster.identity.oidc.issuer --output text
aws iam list-open-id-connect-providers
Fix → eksctl utils associate-iam-oidc-provider --cluster prod --approve, or an aws_iam_openid_connect_provider resource with client_id_list = ["sts.amazonaws.com"].
Prevent → Create the OIDC provider in the same Terraform stack as the cluster.
More on Cloud identity: IRSA, Workload Identity and CI OIDC
A pod configured for IRSA runs `aws sts get-caller-identity` and gets the node role (`eks-node-group-role`) instead of its own roleBeginner`An error occurred (AccessDenied) when calling the AssumeRoleWithWebIdentity operation: Not authorized to perform sts:AssumeRoleWithWebIdentity` from an IRSA podIntermediateIRSA env vars are present in the pod, but one legacy service still uses the node roleIntermediatePods without IRSA can still call AWS with the node's permissions through `169.254.169.254`IntermediateWith EKS Pod Identity, the pod gets `Unable to locate credentials` even though a pod identity association existsIntermediate`aws-actions/configure-aws-credentials` fails with `Credentials could not be loaded, please check your action inputs: Could not load credentials from any providers`Beginner