https://pulumi.com logo
Title
w

witty-belgium-75866

10/26/2021, 9:18 AM
Hi, there is a way to extract the
kubeconfig
of an EKS cluster? I want to pass it to the
k8s.Provider
object in order to deploy stuff on the cluster. thx!
b

billowy-army-68599

10/26/2021, 2:02 PM
with pulumi, or in general? with the AWS cli you'd do:
aws eks update-kubeconfig
With Pulumi, you need to build it yourself, but it's easy enough to do. Here's an example in python: https://github.com/pulumi/examples/blob/258d3bad0a00020704743e37911c51be63c06bb4/aws-py-eks/utils.py let me know the language you're using and I can build an example
w

witty-belgium-75866

10/26/2021, 2:44 PM
Hi @billowy-army-68599 I'm doing it in Pulumi ( Python ) Actually I did the same thing like in the link that you have sent. thx!