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

magnificent-battery-62880

01/28/2022, 4:53 AM
I'm using
pulumi-eks
with python, after I created the Cluster, how do I get a
k8s.Provider
from the kubeconfig?
b

bored-table-20691

01/28/2022, 4:59 AM
m

magnificent-battery-62880

01/28/2022, 5:18 AM
yeah that's what I was looking at, but the
apply
was tripping me up, but maybe in python, you don't need to apply the output?
Copy code
k8s_provider = Provider("k8s_provider", kubeconfig=eks.kubeconfig)
seems to work.
b

bored-table-20691

01/28/2022, 5:52 AM
I'm not as familiar wit the Python side so it's possible it'll work. I believe in Go you also need to do the Apply so that you can stringify the object
q

quiet-wolf-18467

01/28/2022, 9:42 AM
m

magnificent-battery-62880

01/28/2022, 2:22 PM
that code seems to be working, it's not complaining. I don't fully understand it, I know output is a future value so apply makes sense. but whatever, seems to be ok.
2 Views