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
red-leather-22955
05/23/2022, 10:58 AM
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
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.