https://pulumi.com logo
#aws
Title
# aws
c

crooked-knife-92853

08/12/2020, 5:23 PM
Hi everyone. We have an existing EKS cluster (not created with Pulumi) and are wondering if there is any way to get the cluster’s kubeconfig programmatically?
b

bright-policeman-55860

08/12/2020, 6:42 PM
You can try importing the resource into Pulumi and go from there.
It also depends which language you use. I think that with TypeScript you can get kubeconfig as an output (maybe you have to use their component)
I'm on Python, so I just built my own. I can share, if you're interested.
w

white-balloon-205

08/12/2020, 9:22 PM
There's a note on this here as well (in TypeScript - but the same can be done in other languages): https://github.com/pulumi/pulumi-eks/issues/11 That issue is also tracking exposing a function to do this directly from the
@pulumi/eks
package.