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

hundreds-lunch-5706

07/18/2023, 10:52 PM
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

salmon-account-74572

07/18/2023, 11:04 PM
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

hundreds-lunch-5706

07/18/2023, 11:05 PM
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

billowy-army-68599

07/18/2023, 11:15 PM
@hundreds-lunch-5706 you get all the properties back from an existing cluster to build a kubeconfig yourself. Which language are you using
h

hundreds-lunch-5706

07/18/2023, 11:16 PM
Good point, I didn't think of just building it. Python
h

hundreds-lunch-5706

07/18/2023, 11:19 PM
Beautiful, thank you!
5 Views