Pass an input variable through environment variables.
Section: Variables and Environment
Set TF_VAR variable
bash
bash
export TF_VAR_region=us-east-1Explanation
Pass an input variable through environment variables.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Variables and Environment
Default extra CLI args
Inject default arguments for a specific Terraform subcommand.
Enable Terraform logging
Turn on Terraform internal logging for troubleshooting.
Change .terraform directory
Store provider/plugins and local data in a custom directory.
Disable interactive input
Fail instead of prompting for missing variables.