Skill 4.3.1
Declaring input variables
Key Concepts
A variable block can set type, default, description, validation, sensitive, nullable and ephemeral. A variable without a default is required: Terraform prompts for it in an interactive run and fails with an error when input is disabled. A type constraint, such as list(string), makes Terraform reject or convert values of the wrong type.
Variable names cannot be reserved words such as source, version, providers, count, for_each, lifecycle, depends_on and locals. Setting nullable = false makes a null value use the default instead of passing null through.