Enable Terraform debugging for AWS

You can enable Terraform® debugging to troubleshoot potential issues with your Terraform configuration.

These resources are required:

  • A valid Arctic Wolf® Managed Risk license
  • These tools, which are automatically configured during installation:
    • The latest version of the Terraform binary
      Tip: Run this command to verify your existing Terraform version: terraform version
    • AWS CLI

These actions are required:

  1. If a configuration does not exist, run this command in a terminal to configure the log level:
    SHELL
    export TF_LOG="DEBUG"
  2. Run this command to verify the log level:
    SHELL
    echo $TF_LOG
  3. Run this command to configure the log path:
    SHELL
    export TF__LOG_PATH="./example/"
  4. Run this command to verify the logs generated by Terraform:
    SHELL
    terraform apply
  5. Verify that the debug logs are available at the path that you configured.