did you mean component resources? Are your child resources setting
parent = this
everywhere?
l
limited-mouse-98047
07/15/2021, 1:53 PM
Yes, extending
pulumi.ComponentResource
, and setting {parent: this} on the child resources.
Should this also include a dependsOn as well?
b
bored-oyster-3147
07/15/2021, 1:56 PM
Hmmm I think it's worth a try. I know pulumi has 2 different concepts of their resource graph. There is a parent/child graph (for display purposes) and a dependency graph (for provisioning purposes). Which is necessary so that a resource can depend on multiple other resoruces.
So if
--target-dependents
works only on the latter graph than it might make sense that it isn't recognizing the dependents of your
pulumi.ComponentResource
. A
dependsOn
would add that explicit dependency
l
limited-mouse-98047
07/15/2021, 2:06 PM
Okay, that would still align with my mental model of how this works. Will give that a shot.
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.