Enable debug logging for Terraform#
If you are encountering issues when deploying your Aiven service via Terraform, enabling debugging for Terraform can help you to get more information about the problem. This information is also helpful if you need to contact our support team for help.
Set the environment variable
TF_LOGto define the level of logging that should be enabled.
Enable debugging on Linux:
Enable debugging for PowerShell:
The standard logging levels are available:
Lean more about how to choose logging levels
Configure your debug log output to any directory with any file name (i.e.
terraform-debug.log) by setting the environment variable
In the example below, we are sending output logs to the temporary folder with the name terraform-debug.log.
Configure log location on Linux:
Configure log location for PowerShell:
This additional output helps you to trace where the error occurred in more detail when applying your terraform resources.
To generate an example of the core and provider logs,run: