How to log/debug in Terraform

If you have Terraform reporting an error but want more information, then you can configure debug logging.

How to configure Bash

export TF_LOG="TRACE" export TF_LOG_PATH="terraform.txt"
Code language: Bash (bash)

How to configure PowerShell

$env:TF_LOG="TRACE" $env:TF_LOG_PATH="terraform.txt"
Code language: PowerShell (powershell)

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments