Isn't a component resource already dependent on its child resources? Just make sure that their parent is the component resource, and it should work, I think.
little-cartoon-10569
03/02/2021, 11:12 PM
Though the constructor will return immediately, any
Apply
for things like its Id won't happen until the child resources' _Id_'s are available.
b
bored-oyster-3147
03/03/2021, 1:10 AM
What @little-cartoon-10569 said. For clarity's sake I think what you're missing is the:
Copy code
var resourceA = new A(
...,
customResourceOptions: {
parent: this,
});
Which is what explicitly forms that relationship.
w
wet-noon-14291
03/03/2021, 6:16 AM
So you have to set the parent explicitly. Will try, thanks.
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.