TF_LOG_PATH

The environment variable that writes Terraform's logs to a file instead of the terminal.

In more detail

It only takes effect when TF_LOG is also set to a level. The file is appended to on each run, so name a new file per investigation.

Example

TF_LOG=TRACE TF_LOG_PATH=trace.log terraform plan

Related terms

Taught in

References

Certification courses