Is there a programmatic way to get the EKS cluster token using java aws sdk #2737
-
I want to get the EKS cluster token programmatically using java aws sdk code. I couldn't find it in the samples code section. Below details are available with me for generating the token.
Kindly help, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There's no straightforward way to obtain the cluster authentication token using the Java SDK, I'm afraid. We do have a feature request to add support in the Java SDK, and people have shared their working code: #1795. |
Beta Was this translation helpful? Give feedback.
There's no straightforward way to obtain the cluster authentication token using the Java SDK, I'm afraid.
The EKS Dev Guide points to the use of a aws-cli command :
aws eks get-token
or the aws-iam-authenticator library.We do have a feature request to add support in the Java SDK, and people have shared their working code: #1795.