implicit dependency
An ordering between two resources that Terraform works out for itself because one refers to the other.
In more detail
When a subnet reads the network's identifier, Terraform knows to create the network first and destroy it last. Almost every dependency should be implicit; depends_on is only for relationships the configuration cannot express.
Related terms
- resource reference — An expression such as aws_vpc.main.id that reads a value from another block by its address.
- dependency graph — Terraform's internal map of every resource, data source and value in a configuration, linked by which depends on which.
- depends_on meta-argument — The depends_on argument, which tells Terraform one resource must wait for another when no reference shows that relationship.
Taught in
- Writing Your First Configuration In HCL — Infrastructure as Code with Terraform
- Writing A Custom Network Module — Infrastructure as Code with Terraform
- Explicit Dependencies With Depends On — Infrastructure as Code with Terraform
- Dependencies, depends_on And Lifecycle Rules — HashiCorp Terraform Associate (004) Exam Prep
- Trap Sprint: Twelve Answers That Are Almost True — HashiCorp Terraform Associate (004) Exam Prep