https://pulumi.com logo
Title
b

bland-pharmacist-96854

02/06/2023, 3:05 PM
Hi, is there any doc page where I can understand the difference between the parent and dependsOn?
m

miniature-musician-31262

02/06/2023, 3:38 PM
Both are “resource options” covered in Intro > Architecture and Concepts: https://www.pulumi.com/docs/intro/concepts/resources/options/
Although it sounds like you may be asking whether there’s an implied dependency relationship between children and parents, and I don’t believe this is the case (insofar as a parent resource would be provisioned before a child, for example). The docs don’t seem to make this clear, but they probably should.
o

orange-policeman-59119

02/06/2023, 10:33 PM
Parent should primarily be used only for component resources: https://www.pulumi.com/docs/intro/concepts/resources/options/parent/ The Parent option causes a resource to inherit certain resource options from the parent, useful for components. The DependsOn option is used for ordering resource provisioning.
b

bland-pharmacist-96854

02/08/2023, 3:15 PM
thanks!