How to get the cartesian product of multiple sets in terraform?

You can use terraform setproduct() function to get the cartesian product of multiple sets. setproduct() function finds all of the possible combinations of elements from all of the given sets by computing the Cartesian product.

Syntax: setproduct(set1, set2, …)

Example:

Leave a Reply