Interview Prep/Terraform/Variables, Locals, Outputs and Types

What happens if a required variable has no value?

BeginnerConceptVariables, Locals, Outputs and Types
Answer

Interactive runs prompt for it; with -input=false (CI) it fails with No value for required variable. Provide it via tfvars, -var, or TF_VAR_, or give the variable a sensible default if one exists.

All Terraform questions Roadmap: Terraform

More on Variables, Locals, Outputs and Types