creamy-hamburger-70712
11/02/2023, 4:21 PMparent
property of ResourceOptions relate to depends_on
? For example, when I set the parent
do I also have to add the same value to depends_on
? Or when I add a component to depends_on
, does it also imply indirect dependency on its children (for creation and destruction of the resource)?little-cartoon-10569
11/02/2023, 6:45 PMdepends_on
adds a resource-level dependency: if the dependent resource is being deleted, then the dependency resource is deleted first.
parent
adds hierarchy to the resource graph. Lines in pulumi preview
output, and in the Pulumi webapp, show parent-child relationships. By default, opts of parents are inherited by children, unless opts are explicitly provided to children (which I strongly recommend, as implicit opts cause all sorts of hard-to-debug problems).creamy-hamburger-70712
11/06/2023, 11:46 AMdepends_on
property in the web app in a similar way to how I view the "parent" hierarchy? It's often the dependency defined by depends_on
that matters and I missed deps, which cost me time to realise.little-cartoon-10569
11/06/2023, 6:56 PM