Skip to content

Commit 6e31ec1

Browse files
committed
Repository migration and example
1 parent 23eb434 commit 6e31ec1

File tree

10 files changed

+3973
-2
lines changed

10 files changed

+3973
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
# terraform-null-deepmerge
2-
This module performs a deep map merge of standard Terraform maps/objects
1+
# Deepmerge
2+
3+
This module performs a deep map merge of standard Terraform maps/objects. It is functionally similar to the built-in `merge` function, except that it will merge maps at the same depth instead of overwriting them. It can handle maps with a depth up to 100 (see commented-out code at the bottom of `main.tf` if you want to modify it to handle deeper maps).
4+
5+
It functions by "flattening" each input map into a map of depth 1 where each key is the full path to the value in question. It then uses the standard merge function on these flat maps, and finally it re-builds the map structure in reverse order.

0 commit comments

Comments
 (0)