Getting to Know HCL: Variables, Outputs, Locals, Expressions, count, for_each and Dynamic Blocks
In HCL a variable is a value from outside, a local an intermediate value computed in the code, and an output a result you expose; because count identifies resources by position and for_each by key, deleting an element from the middle of a list recreates its neighbours with count. With typed, validated variables, tfvars and TF_VAR_, merge/lookup/try/convert, for expressions and dynamic blocks, we write Bookstore's App Service, Azure SQL and Storage code.
14 Nov 2026
·
14 min
·
11