amzn / smoke-aws-credentials

A library to obtain and assume automatically rotating AWS IAM roles written in the Swift programming language.
Apache License 2.0
19 stars 14 forks source link

How to use this with EKS? #6

Closed t089 closed 5 years ago

t089 commented 5 years ago

Hey, I was wondering how one can use this framework when deploying an application on EKS (where kube2iam is installed)? In this case the AWS_CONTAINER_CREDENTIALS_RELATIVE_URI is not populated. Would it be possible to provide some value for this env in the pod configuration so that the lookup will work through kube2iam?

tachyonics commented 5 years ago

I am not familiar enough with EKS to know how this should work.

Are you trying to follow this documentation - https://github.com/aws-samples/aws-workshop-for-kubernetes/blob/master/04-path-security-and-networking/402-authentication-and-authorization/readme.adoc#iam-container-roles-using-kube2iam

t089 commented 5 years ago

Ok I figured it out: