https://pulumi.com logo
t

tall-beard-99429

08/10/2023, 1:45 PM
Is it possible that promises are being leaked in the background that I don't get told about until it reaches a threshold? I have a setup thats working currently, and I am trying to add a new resource `aws.rds.SubnetGroup`; the preview is absolutely fine; unless I add a
parent: network
to it also, in which case it then tells me that i'm leaking ~ 1200 promises
e

echoing-dinner-19531

08/10/2023, 4:24 PM
Don't do "dependsOn" and "parent", I'm pretty sure that causes issues in most (all?) the SDKs.
t

tall-beard-99429

08/10/2023, 4:25 PM
How come? I am doing
parent
to structure the tree and
dependsOn
is being used to ensure the order is correct
Is there any documentation on the issues this can cause?
e

echoing-dinner-19531

08/10/2023, 4:30 PM
Because parent'ing is also used for dependencies (the expectation is that a parent waits for all it's children) so parent and dependsOn causes loops in the dependency tree.
m

miniature-musician-31262

08/10/2023, 4:50 PM
Is there any documentation on the issues this can cause?
The docs mention this leading to undefined behavior here: https://www.pulumi.com/docs/concepts/options/parent/
t

tall-beard-99429

08/10/2023, 4:51 PM
Ah okay so is the recommendation to only use depends on?
e

echoing-dinner-19531

08/10/2023, 5:02 PM
Yes, parent is really only intended for component resources.