terraform-provider-utils icon indicating copy to clipboard operation
terraform-provider-utils copied to clipboard

Would be nice to have a deepmerge data source that works with objects, not yaml/json strings

Open mm-chia opened this issue 1 year ago • 0 comments

Describe the Feature

This would be a generic deepmerge data source, which works with objects as inputs. Thus, it could be used for merging either yaml or json, (by applying yamldecode/jsondecode to the files, before passing them as inputs to this data source). Furthermore, it would be more flexible data source (essentially, rendering the other two data sources obsolete). Using this new data source, one can have more flexibility - merge objects coming from different places / different files, etc.

Expected Behavior

Missing feature

Use Case

Allows more flexibility over inputs used for deep merge.

Describe Ideal Solution

A generic deep merge data source which works with objects as inputs, not json/yaml strings.

Alternatives Considered

No response

Additional Context

Currently using isometry/deepmerge because of flexibility but would like to switch to cloudposse/utils

mm-chia avatar Jan 16 '25 06:01 mm-chia