Skip to content

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)

See also  [Solved] Unable to connect to the server: dial tcp: lookup with AWS EKS
Tags:
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x