setproduct - Functions - Configuration Language | Terraform | HashiCorp Developer

The setproduct function finds all of the possible combinations of elements from all of the given sets by computing the cartesian product.