Interview Prep/Terraform/Rapid-Fire Commands

Turn on debug logging for a provider issue and keep it in a file?

IntermediateProductionRapid-Fire Commands
Answer
TF_LOG=DEBUG TF_LOG_PATH=./tf-debug.log terraform plan
TF_LOG_PROVIDER=TRACE terraform apply   # provider logs only

Remember logs can contain secrets; do not share them unredacted.

All Terraform questions

More on Rapid-Fire Commands