When writing in Pulumi JS, do you have to write in...
# general
a
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
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
Awesome, thanks!!