Terraform built them in the right order. Nobody told it.

You'll learn to
reference another resource's attribute and explain how that creates an implicit dependency
Recap
- 1Reference = type.name.attribute, like random_pet.ship.id (in a string: ${...})
- 2A reference is an implicit dependency: Terraform builds the graph
- 3No link = parallel. Destroy runs in reverse. depends_on only for hidden links
Check yourself
local_file uses random_pet.ship.id. What does Terraform create first?
2.3
Stamp this lesson
Watched it and passed the check? Mark it in your logbook.
