fierce-holiday-69805
04/14/2021, 1:49 PMbored-oyster-3147
04/14/2021, 1:55 PMparent
property, not resource dependencies. Pulumi is smart enough to deploy in the order that dependencies require (and I think if you look in the state file you'll see those dependencies) but by default each resource's parent
is the top-level Stack
resource unless provided otherwise - and I think that's the graph you're seeingpreview
as an example of the parent/child relationship. And dependsOn
(to set explicit dependencies) is a different property / functionfierce-holiday-69805
04/14/2021, 2:04 PMbored-oyster-3147
04/14/2021, 2:15 PMparent
property inside component resources. The vast majority of users are able to do what they need to do inside the Stack
constructor or inside the initial pulumi delegate, and never make use of component resources. So it seems like a lot of work has been done to cater to the most common use-case. For instance the Stack
constructor doesn't make you call RegisterOutputs(...)
, or like you said, it doesn't make you pass the parent
. But as soon as you make a component resource you take on the responsibility for that functionality and have to do parent: this,
and remember to call .RegisterOutputs(..)
pulumi stack graph
command give you a more comprehensive graph, or is it the same graph? https://www.pulumi.com/docs/reference/cli/pulumi_stack_graph/ because it seems like it has flags that differentiate between "parent edges" and "dependency edges"fierce-holiday-69805
04/14/2021, 2:19 PMbored-oyster-3147
04/14/2021, 2:22 PMfierce-holiday-69805
04/14/2021, 2:25 PMhandsome-state-59775
04/14/2021, 2:33 PMparent
cannot automatically be inferred from the dependency graph?bored-oyster-3147
04/14/2021, 2:37 PMbillowy-army-68599
04/14/2021, 3:45 PMbored-oyster-3147
04/14/2021, 3:48 PMred-match-15116
04/14/2021, 3:53 PMpulumi stack graph
command https://www.pulumi.com/docs/reference/cli/pulumi_stack_graph/stack graph
command for now.bored-oyster-3147
04/14/2021, 3:55 PMhandsome-state-59775
04/14/2021, 4:03 PMdepends_on
, does it override automatically inferred dependencies or just augment them?red-match-15116
04/14/2021, 4:04 PMif i specifyIt augments them, does it override automatically inferred dependencies or just augment them?depends_on