Interview Prep/Terraform/Loops, Conditionals, Dynamic Blocks and Functions

What do `merge`, `concat` and `lookup` do?

IntermediateConceptLoops, Conditionals, Dynamic Blocks and Functions
Answer

merge(map1, map2) combines maps with later keys winning, great for tag maps. concat(list1, list2) joins lists. lookup(map, key, default) reads a key with a fallback; for newer code, map[key] or try(map[key], default) is often clearer.

All Terraform questions Roadmap: Terraform

More on Loops, Conditionals, Dynamic Blocks and Functions