From d2d17f42a654334d00b03ae5ec9e480e334e3d73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix-Antoine=20Fortin?= Date: Tue, 19 Nov 2024 11:04:46 -0500 Subject: [PATCH] Fix issue with Azure instance being inaccessible --- azure/network.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure/network.tf b/azure/network.tf index 23e85cd3..b93cabfa 100644 --- a/azure/network.tf +++ b/azure/network.tf @@ -28,7 +28,7 @@ resource "azurerm_public_ip" "public_ip" { locals { fw_tags = toset([ for key, value in var.firewall_rules: value.tag ]) fw_sets = { - for tags in distinct([for key, values in module.design.instances: toset(setintersection(values.tags, local.fw_tags))]): + for tags in distinct([for key, values in module.design.instances: toset(values.tags) if length(setintersection(values.tags, local.fw_tags)) > 0]): join("-", toset(tags)) => toset(tags) if length(tags) > 0 }