From f1f464e3645f11ac32a1e684da9f413f3a8025fc Mon Sep 17 00:00:00 2001 From: Felipe Santos Date: Sun, 10 Jan 2021 03:08:48 -0300 Subject: [PATCH] Add setproduct function to the bake HCL As explained in the following link, it's a very useful function. https://www.terraform.io/docs/configuration/functions/setproduct.html#finding-combinations-for-for_each Signed-off-by: Felipe Santos --- bake/hcl.go | 1 + 1 file changed, 1 insertion(+) diff --git a/bake/hcl.go b/bake/hcl.go index 3fd63bc0..704d244f 100644 --- a/bake/hcl.go +++ b/bake/hcl.go @@ -95,6 +95,7 @@ var ( "rsadecrypt": crypto.RsaDecryptFunc, "sethaselement": stdlib.SetHasElementFunc, "setintersection": stdlib.SetIntersectionFunc, + "setproduct": stdlib.SetProductFunc, "setsubtract": stdlib.SetSubtractFunc, "setsymmetricdifference": stdlib.SetSymmetricDifferenceFunc, "setunion": stdlib.SetUnionFunc,