Skip to content
Captain's Academy0
← Terraform sea chart
Island 2 · HCL basics · Port 2.3

References build the order

Ask the Captain
Instagram
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

  1. 1Reference = type.name.attribute, like random_pet.ship.id (in a string: ${...})
  2. 2A reference is an implicit dependency: Terraform builds the graph
  3. 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.