https://pulumi.com logo
#general
Title
# general
a

average-dream-51210

05/28/2019, 8:27 PM
When writing in Pulumi JS, do you have to write in the order that they depend on each other? Or does Pulumi calculate a dependency graph behind the scenes regardless of the order you write your infrastructure components in?
w

white-balloon-205

05/28/2019, 8:29 PM
Pulumi calculates the dependency graph automatically from the object references you provide. The TypeScript typing plays no role. Manually providing
dependsOn
should only be required when there are implicit dependencies between resources in your cloud provider which are not directly specified in the inputs to a resource.
a

average-dream-51210

05/28/2019, 8:32 PM
Awesome, thanks!!