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.
More on Variables, Locals, Outputs and Types
How do you declare an input variable?BeginnerIn what order does Terraform load variable values?BeginnerHow do you define an output and what is it for?BeginnerWhat is the difference between locals and variables?BeginnerWhat are the primitive types in Terraform?BeginnerHow do list, set and map differ?Intermediate