https://pulumi.com logo
Title
p

purple-plumber-90981

03/17/2022, 3:31 AM
whats the right pulumi/python way to make a resource in pulumi_stack2 depend on the existance of a resource created in pulumi_stack1
i was looking for an example where stack2 was using pulumi.StackReference to resources in stack1
s
To close the loop here. The idea is for stack1 and stack2 to start deployment at the same time, but have stack2 to wait for an exported value to become available to then continue on stack2. Since Pulumi only exports the resulting value (ie, not the Output() object), the wait capability has to be a custom logic implemented in stack2. using a
require_
rather than a
get_
and catching the error should allow for inserting an exponential back-off.