This message was deleted.
# kubernetes
s
This message was deleted.
b
You need to map the
Output
to an
Input
. I'm not sure how to do this in Python, but in TypeScript there's an
apply
method.
r
I tried that, but it caused the same error. According to https://www.pulumi.com/docs/intro/concepts/inputs-outputs/#apply "The result of the call to
apply
is a new Output", so it is still the wrong type
b
What does your code look like? You should be doing very roughly:
Copy code
def build_cluster(provider):
    # Big hand-wave here.
    return k8s.Pod(
        provider=provider
    )

pod = cluster.provider.apply(build_cluster)
The function you pass in to
apply
should take the provider as an argument, and return the transformed object. It's using standard monadic patterns (which, sadly, don't have a good analog in Python to draw from). If you've ever used a
promise
API, it's like that.
r
thanks for your help, I did a whole load of experimentation and it turns out it is a open issue in Pulumi: https://github.com/pulumi/pulumi-eks/issues/662 There's a workaround that worked for me
🤔 1
🎉 1