<p>I would like to access role's aws key and secret within EKS pod but have been unsuccessful so far.</p>
<p>The idea is to retrieve them from instance metadata and inject them as ENV variables into pod. I have already linked service account to role and specified it in pod deployment but it doesn't look like key is automatically available as ENV in pod.</p>
<p>What's the best way to approach this?</p>

Anton Kim
<p>Using ak/sk is not a good practice, you can use <a href="https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html" rel="nofollow noreferrer">IAM role for service account</a> to bind the RBAC in k8s with the IAM roles .</p>
