Skip to content

Instantly share code, notes, and snippets.

@huevos-y-bacon
Created April 4, 2018 09:23
Show Gist options
  • Save huevos-y-bacon/1d4528770e8582697e6dbb5670fbcea1 to your computer and use it in GitHub Desktop.
Save huevos-y-bacon/1d4528770e8582697e6dbb5670fbcea1 to your computer and use it in GitHub Desktop.
Terraform debug logging
#!/bin/bash
# Run in temrinal session, before terraform init
# Launch using ". tf_log.sh"
# If NOT running on Mac, comment out last line
export TF_LOG=DEBUG
export TF_LOG_PATH=./TF_LOG.log
touch $TF_LOG_PATH
open /Applications/Utilities/Console.app $TF_LOG_PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment