This seems like a straightforward task but I can't...
# aws
h
This seems like a straightforward task but I can't find a way to do it. Is there a way to get an existing EKS cluster's kubeconfig (so as to create a
pulumi/kubernetes
Provider)?
Ah here's the answer I was looking for: https://github.com/pulumi/pulumi-aws/issues/2049
s
If you’re using Pulumi EKS, there’s a nice
Kubeconfig
property/method that gives you exactly what you need. I understand, though, that Pulumi EKS may be too opinionated/not flexible enough for all use cases.
h
I saw that too. Unfortunately, I need to work with an existing cluster and there doesn't appear to be a way to import existing pulumi_eks clusters right now either...
b
@hundreds-lunch-5706 you get all the properties back from an existing cluster to build a kubeconfig yourself. Which language are you using
h
Good point, I didn't think of just building it. Python
h
Beautiful, thank you!