Interview Prep/Terraform/Workflow and CLI

Which environment variables do you use to control Terraform?

IntermediateConceptWorkflow and CLI
Answer

TF_LOG (TRACE, DEBUG, INFO, WARN, ERROR) with TF_LOG_PATH for debugging, TF_VAR_name for variables, TF_IN_AUTOMATION=1 to trim hints in CI, TF_INPUT=0 to disable prompts, TF_CLI_ARGS_plan for default flags, TF_DATA_DIR to relocate .terraform, and TF_PLUGIN_CACHE_DIR to share provider downloads.

All Terraform questions Roadmap: Terraform

More on Workflow and CLI