Control Log Level of Terraform

Terraform in the cloud writes the stderr log in the console so that we can quickly discover what resources are created, changed, and destroyed. However, it may sometimes be too lengthy to grasp the complete information quickly. As we do for the typical long-running application, it is necessary to control the log level to suppress the output of unessential descriptions.

TF_LOG environment variable is the way to control what type of information is written to the stderr.


This variable is, of course, usable in the local Terraform. Additionally, we can make the environment variable effective by setting that in the variables pane in the dashboard of Terraform cloud.

It simplifies the process of looking into the log written by Terraform for you.