Looking for a solution to change the terraform log level so you could get more information for debugging purposes? This is the right post for you.
By default, there is no value set for
TF_LOG. You could set
TF_LOG environment variable to trace with the below command which will provide you the most detailed information for debugging purposes.
After running the above command, running
terraform init would give you a bunch of logs in your terminal.
trace is also the most verbose level in Terraform. Simpy means it is the log level that could give you the all information.
You could simply unset the environment variable
TF_LOG by running the command:
I hope this post does provide value to you and see you in the next one.