How to get relative complement between two sets in terraform?

You can use terraform setsubtract() function to get relative complement between two sets. setsubtract() function returns a new set containing the elements from the first set that are not present in the second set. In other words, it computes the relative complement of the second set.

Syntax: setsubtract(set1, set2)

Example:

Leave a Reply