HashiCorp Certified: Terraform Associate — Question 83
You want to know from which paths Terraform is loading providers referenced in your Terraform configuration (*.tf files). You need to enable debug messages to find this out.
Which of the following would achieve this?
Answer options
- A. Set the environment variable TF_LOG=TRACE
- B. Set verbose logging for each provider in your Terraform configuration
- C. Set the environment variable TF_VAR_log=TRACE
- D. Set the environment variable TF_LOG_PATH
Correct answer: A
Explanation
Setting the environment variable TF_LOG=TRACE enables detailed logging, which includes information about the paths from which Terraform loads providers. The other options either do not provide the necessary level of logging (B) or are incorrectly formatted environment variables (C and D), thus they will not achieve the desired result.