Skip to content

Instantly share code, notes, and snippets.

@DevoKun
Created May 7, 2019 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DevoKun/ad0410e07cc206133392a87b6d1f409c to your computer and use it in GitHub Desktop.
Save DevoKun/ad0410e07cc206133392a87b6d1f409c to your computer and use it in GitHub Desktop.
Configure Terraform Logging

Terraform Logging

Terraform Logging is configured using the TF_LOG environment variable.

Valid logs levels

DEBUG, INFO, WARN, ERROR, TRACE

Enable the logs

export TF_LOG="DEBUG"

terraform init
terraform plan

Log to a file

export TF_LOG_PATH="terraform.log"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment