Platform & DevOps·Infrastructure described in a file
you never say what order to build things in; the tool works it out from which resource references which.
Resource graph
Also calleddependency graph, provisioning order
The dependency graph the tool derives from references between resources, used to order creation, update and destruction and to parallelise what is independent. It is why declarations can be written in any order and why deletion happens in reverse. Implicit dependencies the graph cannot see — a policy that must exist before a service can assume a role — are the origin of the intermittent failures that succeed on a second apply.