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

What does `nullable = false` do?

IntermediateConceptVariables, Locals, Outputs and Types
Answer

By default a caller may pass null to a variable, which then bypasses the default. With nullable = false, passing null is rejected or replaced by the default, so modules do not receive unexpected nulls. We set it on most scalar variables with defaults.

All Terraform questions Roadmap: Terraform

More on Variables, Locals, Outputs and Types