AWS CSPM Terraform Debugging
Updated Nov 2, 2023Enable Terraform debugging
Enable Terraform® debugging to troubleshoot potential issues with your Terraform configuration.
Requirements
- A valid Arctic Wolf® Managed Risk license
- These tools, which are automatically configured during installation:
- Terraform binary version 1.3.7 or newer
Tip: Run
terraform version
to verify your existing Terraform version. - AWS CLI
- CSPM AWS Terraform script
- Terraform binary version 1.3.7 or newer
Before you begin
Steps
- If you do not suspect an existing configuration to be present, run this command in a terminal to configure the log level:
export TF_LOG="DEBUG"
- Run this command to verify the log level:
echo $TF_LOG
- Run this command to configure the log path:
export TF__LOG_PATH="./example/"
- Run this command to verify the logs generated by Terraform:
terraform apply
- Verify that the debug logs are available at the path that you configured.