From c4236c453d3d45aa3e5e985f88b50338bcc0e5fc Mon Sep 17 00:00:00 2001 From: Jamil Bou Kheir Date: Thu, 25 Jul 2024 22:52:39 -0700 Subject: [PATCH] add depends_on --- examples/nat-gateway/main.tf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/nat-gateway/main.tf b/examples/nat-gateway/main.tf index 9b44f20..e2ba6d6 100644 --- a/examples/nat-gateway/main.tf +++ b/examples/nat-gateway/main.tf @@ -61,6 +61,11 @@ module "gateway" { # horizontally. # See https://www.firezone.dev/kb/deploy/gateways#sizing-recommendations. # instance_type = "Standard_B1ls" + + depends_on { + # Ensure the NAT Gateway is created before the Gateways. + azurerm_nat_gateway_public_ip_association.firezone + } } # Configure the Azure provider