THE DEV BENCH
🌍 HCL (Terraform)medium

3. A variable block

Declare a Terraform input variable: variable "location" { … } Give it: • type — string (the bare keyword string, NOT quoted) • default — the string "eastus"

How to approach this

A `variable` block declares an input. Its `type` is a type KEYWORD — `string`, `number`, `bool`, `list(string)` — written WITHOUT quotes (it names a type, not a text value). The `default` here, though, is an actual string, so it IS quoted. Getting the quote/no-quote right is the whole skill.

main.tf