From 4a351f6c1006dc6dfaa5b29f98eaaa9cce106e4b Mon Sep 17 00:00:00 2001 From: Jeff Owens Date: Thu, 21 Nov 2024 09:35:55 -0500 Subject: [PATCH] fix: (PSKD-975) Add public_network_access_enabled to azurerm_postgresql_flexible_server resource (#411) --- modules/azurerm_postgresql_flex/main.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/azurerm_postgresql_flex/main.tf b/modules/azurerm_postgresql_flex/main.tf index e2523d06..fa588a78 100644 --- a/modules/azurerm_postgresql_flex/main.tf +++ b/modules/azurerm_postgresql_flex/main.tf @@ -37,7 +37,8 @@ resource "azurerm_postgresql_flexible_server" "flexpsql" { tags = var.tags delegated_subnet_id = var.delegated_subnet_id private_dns_zone_id = try(azurerm_private_dns_zone.flexpsql[0].id, null) - + public_network_access_enabled = var.connectivity_method == "public" ? true : false + depends_on = [azurerm_private_dns_zone_virtual_network_link.flexpsql] lifecycle {