Seems like pulumi is not waiting for my aws LoadBa...
# general
q
Seems like pulumi is not waiting for my aws LoadBalancer to be full provisioned before creating rules on it. Is there a way to manually wait before continuing or is this a bug that needs addressing?
e
You can use:
Copy code
new resource(name, args, {
        dependsOn: [
            lambdaRolePolicy
        ]
    });
I had the same before. As far as I understand, pulumi aggressively try to create resources...
q
thanks!
h
Is
dependsOn
only necessary if the resource doesn't take an
Output
value from the LoadBalance object?
For example, if I create a Listener, it takes a LoadBalancer ARN as input. In that case I wouldn't need
dependsOn
right?
s
yea thats right
👍 1