Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.
Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.
Terraform can manage resource dependencies automatically by inferring them based on the configuration of resources. The `depends_on` argument is only necessary for creating explicit dependencies when Terraform is unable to infer them automatically. Therefore, the statement that Terraform can only manage resource dependencies if you set them explicitly with the `depends_on` argument is false.
I think it's B for sure
"I think", and "for sure"... are not compatible :D
B is the correct answer. Terraform do manage implicit dependencies using the attribute values mentioned in the configuration of the resources.
https://developer.hashicorp.com/terraform/tutorials/0-13/dependencies?in=terraform%2F0-13 Implicit dependencies are the primary way that Terraform understands the relationships between your resources. Sometimes there are dependencies between resources that are not visible to Terraform, however. The depends_on argument is accepted by any resource or module block and accepts a list of resources to create explicit dependencies for.
B. False. Terraform can manage resource dependencies automatically without explicitly setting them using the depends_on argument.
Answer is B. Most of the time, Terraform infers dependencies between resources based on the configuration given, so that resources are created and destroyed in the correct order. Occasionally, however, Terraform cannot infer dependencies between different parts of your infrastructure, and you will need to create an explicit dependency with the depends_on argument. https://developer.hashicorp.com/terraform/tutorials/0-13/dependencies?in=terraform%2F0-13
Terraform is smart enough to manage resource dependencies to an extent, without any explicit instructions.
B, false
B is correct. Implicit as well
Answer: B "Most of the time, Terraform infers dependencies between resources based on the configuration given, so that resources are created and destroyed in the correct order" -> https://learn.hashicorp.com/tutorials/terraform/dependencies
B. False implicit = hidden dependencies Trfm can can manage.
I believe A is the correct answer. "Use the depends_on meta-argument to handle hidden resource or module dependencies that Terraform cannot automatically infer. You only need to explicitly specify a dependency when a resource or module relies on another resource's behavior but does not access any of that resource's data in its arguments." https://www.terraform.io/language/meta-arguments/depends_on
You voted A and the comment is in support of B ?
you have implicit as well, therefore B
Terraform automatically infers when one resource depends on another by studying the resource attributes used in interpolation expressions.
A is correct we need pass explicitly depends_on
It is B
B is correct implicit decencies trfm can manage without depends on command, for example in AWS eip resource will be dependent on the Ec2 creation, so trfm will first create the Ec2 and then eip will be allocated/created. and eip creation will be after the creation of Ec2. https://learn.hashicorp.com/tutorials/terraform/dependencies?in=terraform/0-13
Manage explicit dependencies Implicit dependencies are the primary way that Terraform understands the relationships between your resources. Sometimes there are dependencies between resources that are not visible to Terraform, however. The depends_on argument is accepted by any resource or module block and accepts a list of resources to create explicit dependencies for. B
I was wrong i have checked it again - Terraform cannot infer dependencies between different parts of your infrastructure, and you will need to create an explicit dependency with the depends_on argument. A is correct answer