From 91c9cf17f82db392e87e5a130dd74e9114fcf9ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix-Antoine=20Fortin?= Date: Wed, 10 Jul 2024 09:29:38 -0400 Subject: [PATCH] Fix issue #313 --- azure/network.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azure/network.tf b/azure/network.tf index 52f3fdd7..48e46b20 100644 --- a/azure/network.tf +++ b/azure/network.tf @@ -27,9 +27,9 @@ resource "azurerm_public_ip" "public_ip" { locals { fw_tags = toset([ for key, value in var.firewall_rules: value.tag ]) fw_sets = { - for key, value in module.design.instances: - join("-", toset(value.tags)) => toset(value.tags) - if length(setintersection(value.tags, local.fw_tags)) > 0 + for tags in distinct([for key, values in module.design.instances: toset(setintersection(values.tags, local.fw_tags))]): + join("-", toset(tags)) => toset(tags) + if length(tags) > 0 } }