AWS EKS API Authorization in javascript from outside a cluster

4/8/2020

I need to access my EKS cluster in AWS in JavaScript code either from local or lambda function. EKS cluster is configured to use IAM roles. I need to generate a token that I can use later with API calls to interact with pods and other kubernetes resources.

I found this code in Python how EKS token can be obtained: https://github.com/kubernetes-sigs/aws-iam-authenticator#api-authorization-from-outside-a-cluster

It works perfectly in Python but no code in JS. AWS support confirmed that this cannot be done in AWS SDK either.

Please advise what are the options? Thank you.

-- Stanislav Hordiyenko
amazon-eks
javascript
kubernetes

0 Answers