Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate 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?

Show Answer
Correct Answer: A

To enable debug messages and see from which paths Terraform is loading providers referenced in your configuration files, you need to set the environment variable TF_LOG to TRACE. This configuration sets the log level to TRACE, which is the most verbose logging level available, thereby providing detailed debug information, including the loading paths for providers.

Discussion

5 comments
Sign in to comment
EltoothOption: A
Dec 28, 2023

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

yufei
Dec 22, 2023

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.

Ahmad_Terraform
Jan 14, 2024

Set the environment variable TF_LOG=TRACE

chimonsOption: A
Jun 19, 2024

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.

Power123
Oct 1, 2024

TF_LOG=TRACE is correct. Ans A