I need a way to simulate aws eks get-token
behaviour for aws in the code.
#791
-
Hello there! Thanks for actively working on rust libraries for AWS APIs, they are enjoyable, really. I stumbled over a single problem so far and really struggle to overcome it in a simple way, I was hoping maybe somebody did something similar and knows a workaround. What I am trying to achieve here is to build multiple kubernetes clients with Obviously, I have access to Which, seems, kinda tedious task to do and seems to belong to the aws-native crates themselves. Any chances I am missing anything, some examples maybe, which could help me? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I did a little investigation—this is a high level library implemented by the EKS team for the CLI to actually authenticate to Kubernetes. I think you're best bet would probably be to port that code to Rust: https://github.com/aws/aws-cli/blob/develop/awscli/customizations/eks/get_token.py Sorry I can't be more helpful. |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
I did a little investigation—this is a high level library implemented by the EKS team for the CLI to actually authenticate to Kubernetes. I think you're best bet would probably be to port that code to Rust: https://github.com/aws/aws-cli/blob/develop/awscli/customizations/eks/get_token.py
Sorry I can't be more helpful.