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.
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
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 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
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
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
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
vitasac
Highly Voted 2 years, 6 months agogofavad926
1 year, 1 month agoNi33
Highly Voted 1 year, 6 months agogofavad926
Most Recent 1 year, 1 month agodhez46
1 year, 7 months agocamps
1 year, 7 months agoPower123
1 year, 7 months agoresnef
1 year, 10 months agovikramvlr
1 year, 11 months agoeduvar4
2 years, 1 month agoj1809
2 years, 2 months agoGopinathM
2 years, 2 months agokopper2019
2 years, 3 months agoAhmad_Terraform
2 years, 4 months agoAhmad_Terraform
2 years, 4 months agoEltooth
2 years, 4 months agoRVivek
2 years, 2 months agoZam88
2 years, 5 months agoZam88
2 years, 5 months agorfd
2 years, 5 months ago