Pods without IRSA can still call AWS with the node's permissions through `169.254.169.254`
IntermediateTroubleshootingCloud identity: IRSA, Workload Identity and CI OIDC
Answer
Likely causes → IMDSv1 is enabled, or IMDSv2's hop limit is 2 or more, which lets containers in pod network namespaces reach the metadata service.
Diagnose →
kubectl run t --rm -it --image=curlimages/curl -- \
sh -c 'curl -s -X PUT -H "X-aws-ec2-metadata-token-ttl-seconds: 60" http://169.254.169.254/latest/api/token'
aws ec2 describe-instances --instance-ids <id> --query 'Reservations[].Instances[].MetadataOptions'
Fix → In the launch template set http_tokens = "required" and http_put_response_hop_limit = 1. Pods on host networking can still reach IMDS, so also add a NetworkPolicy egress deny to 169.254.169.254/32.
Prevent → Keep node roles minimal (ECR pull, CNI, SSM), give every workload IRSA or Pod Identity, and enforce the metadata options with an SCP or AWS Config rule.
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 podIntermediate`InvalidIdentityToken: No OpenIDConnect provider found in your account for https://oidc.eks.ap-south-1.amazonaws.com/id/ABC123`BeginnerIRSA env vars are present in the pod, but one legacy service still uses the node roleIntermediateWith 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