Setting Environment Variables»
Environment variables are commonly used for enabling advanced logging levels for Terraform and Terragrunt. There are two ways environment variables can be set for runs.
Set Environment Variable(s) directly on a Stack's Environment (easiest method).
Set Environment Variable(s) in a Context, and then attach that Context to your Spacelift Stack(s).
Terraform providing an advanced logging mode that can be enabled using the
TF_LOG environment variable. As of the writing of this documentation,
TF_LOG has 5 different logging levels:
Please refer to the Setting Environment Variables section for more information on how to set these variables on your Spacelift Stack(s).
For more information on Terraform logging, please refer directly to the Terraform documentation.
Please refer to the Debugging Terragrunt section of our Terragrunt documentation.