Exam Terraform Associate All QuestionsBrowse all questions from this exam
Question 73

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?

    Correct Answer: A

    A

    Reference:

    https://www.terraform.io/docs/cli/config/environment-variables.html

Discussion
EltoothOption: A

A is correct answer. TF_LOG=TRACE Although this will only output to stderr and if you need to review log file you will need to include TF_LOG_PATH=pathtofile https://www.terraform.io/internals/debugging

yufeiOption: A

A. TRACE is the most verbose option available and should show what the user is looking for. TRACE will show TRACE, DEBUG, INFO, WARN and ERROR messages in the output.

chimonsOption: A

A. Set the environment variable TF_LOG=TRACE To enable debug messages in Terraform, you can set the environment variable TF_LOG to the value TRACE. This will cause Terraform to print detailed debug information, including the paths from which it is loading providers.

Ahmad_TerraformOption: A

Set the environment variable TF_LOG=TRACE

Power123Option: A

TF_LOG=TRACE is correct. Ans A