`Error: waiting for EKS Node Group (prod:general) create: unexpected state 'CREATE_FAILED'` after 20+ minutes.
AdvancedTroubleshootingAuthentication and Cloud API Errors
Answer
Likely causes → Nodes couldn't join: no route to the EKS endpoint/ECR (private subnets without NAT or VPC endpoints), node role missing AmazonEKSWorkerNodePolicy/AmazonEC2ContainerRegistryReadOnly/CNI policy, insufficient capacity for the instance type, or access entries missing.
Diagnose →
aws eks describe-nodegroup --cluster-name prod --nodegroup-name general \
--query 'nodegroup.health.issues'
Issues like NodeCreationFailure or AsgInstanceLaunchFailures point to the cause.
Fix → Fix networking/IAM/capacity, then re-apply. The failed node group is in state as tainted and will be replaced.
Prevent → Use a known-good VPC module with endpoints/NAT, and test node group config in a dev cluster.
More on Authentication and Cloud API Errors
`Error: No valid credential sources found` followed by `no EC2 IMDS role found ... context deadline exceeded`.Beginner`Error: Cannot assume IAM Role` — `api error AccessDenied: User: arn:aws:iam::111111111111:user/ci is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::222222222222:role/terraform`.IntermediateGitHub Actions: `Could not assume role with OIDC: Not authorized to perform sts:AssumeRoleWithWebIdentity`.IntermediateGitHub Actions log says `It looks like you might be trying to authenticate with OIDC. Did you mean to set the id-token permission?`BeginnerApplies that run longer than an hour fail with `ExpiredToken: The security token included in the request is expired`.Intermediate`InvalidClientTokenId: The security token included in the request is invalid.`Beginner