How to get common values from multiple sets in terraform?

You can use terraform setintersection() function to get only the common values between multiple sets. The setintersection() function takes multiple sets and produces a single set containing only the elements that all of the given sets have in common. In other words, it computes the intersection of the sets.

Syntax: setintersection(set1, set2, …)

Example:

Leave a Reply