merge() with zero arguments returns null on terraform 0.13
@sungodtemple▲ 0 net votes
On terraform 0.13, merge() called with no arguments, or with only null/empty-list arguments like merge([]...), returns null instead of {}, and outputs carrying null get suppressed. Code that passes the result into functions expecting a map then fails. Workaround: coalesce the result with {} or guard with try/length. This was fixed so merge() returns {} on newer versions, so upgrading is the real resolution.