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?
A.
Set the environment variable TF_LOG=TRACE
B.
Set verbose logging for each provider in your Terraform configuration
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
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.
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.
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.
Eltooth
Highly Voted 2 years, 4 months agoyufei
Highly Voted 2 years, 5 months agoPower123
Most Recent 1 year, 7 months agochimons
1 year, 11 months agoAhmad_Terraform
2 years, 4 months ago