You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EKS Pod Identity provides improved security for Kubernetes workloads by offering
pod-level credential isolation compared to instance roles. The implementation:
- Automatically detects Pod Identity environment variables
- Retrieves temporary AWS credentials via HTTP endpoint using JWT token
- Follows existing credential provider patterns with caching and refresh logic
- Integrates into default credential chain: env vars → pod identity → instance role
- Uses raw JWT token format (not Bearer) as required by EKS Pod Identity service
This enables seamless AWS API access for applications running on EKS clusters
configured with Pod Identity associations.
This means it will try to resolve credentials in order:
63
63
64
64
* Look for the AWS standard `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` environment variables
65
+
* Try to use [EKS Pod Identity](https://docs.aws.amazon.com/eks/latest/userguide/pod-identities.html) if running on EKS with Pod Identity configured
65
66
* Resolve credentials with IAM
66
67
* If running inside ECS and a [task role](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html) has been assigned it will use it
67
68
* Otherwise it will fall back to the [instance role](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html)
@@ -80,10 +81,19 @@ variable, you can use that with `{:awscli, :system, timeout}`
For applications running on Amazon EKS, ExAws supports [EKS Pod Identity](https://docs.aws.amazon.com/eks/latest/userguide/pod-identities.html) for credential resolution. Pod Identity automatically injects the required environment variables into your pods when properly configured:
91
+
92
+
*`AWS_CONTAINER_CREDENTIALS_FULL_URI` - The endpoint URL for credential retrieval
93
+
*`AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE` - Path to the JWT token file
94
+
95
+
No additional configuration is required in ExAws - it will automatically detect and use Pod Identity credentials when these environment variables are present. Pod Identity provides improved security and isolation compared to instance roles by providing pod-level credential scoping.
96
+
87
97
For role based authentication via `role_arn` and `source_profile` an additional
0 commit comments