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.
More on Loops, Conditionals, Dynamic Blocks and Functions
How does `count` work?BeginnerHow does `for_each` work?BeginnerWhen should you choose `for_each` over `count`?IntermediateHow do you use `for_each` with a list of objects?IntermediateWhat does "The for_each value depends on resource attributes that cannot be determined until apply" mean?AdvancedHow do you create a resource conditionally?Beginner