cloudydeno / deno-aws_api

From-scratch Typescript client for accessing AWS APIs
https://deno.land/x/aws_api
59 stars 3 forks source link

Getting EKS credentials from regional STS endpoints #2

Open danopia opened 3 years ago

danopia commented 3 years ago

When AWS_STS_REGIONAL_ENDPOINTS is regional then use the region sts:AssumeRoleWithWebIdentity endpoint instead of the global one.

Variable is set by this: https://github.com/aws/amazon-eks-pod-identity-webhook/commit/c1fc3584b0557492b2b040d5e4f26ec565dc1847#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R90