TF_LOG

The environment variable that turns on Terraform's detailed logs and sets their level.

Verbose logs can include sensitive values and request details.

In more detail

Levels from most to least detail are TRACE, DEBUG, INFO, WARN and ERROR, and JSON gives machine-readable TRACE output. TF_LOG_CORE and TF_LOG_PROVIDER set the level for Terraform itself or for providers separately. Logs can contain secrets, so share them with care.

Example

TF_LOG=DEBUG terraform plan

Related terms

Taught in

References

Certification courses