Interview Prep/DevSecOps/Cloud identity: IRSA, Workload Identity and CI OIDC

`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.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Cloud identity: IRSA, Workload Identity and CI OIDC