Skip to content

Commit 4a351f6

Browse files
authored
fix: (PSKD-975) Add public_network_access_enabled to azurerm_postgresql_flexible_server resource (#411)
1 parent 48ca24a commit 4a351f6

File tree

1 file changed

+2
-1
lines changed
  • modules/azurerm_postgresql_flex

1 file changed

+2
-1
lines changed

modules/azurerm_postgresql_flex/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ resource "azurerm_postgresql_flexible_server" "flexpsql" {
3737
tags = var.tags
3838
delegated_subnet_id = var.delegated_subnet_id
3939
private_dns_zone_id = try(azurerm_private_dns_zone.flexpsql[0].id, null)
40-
40+
public_network_access_enabled = var.connectivity_method == "public" ? true : false
41+
4142
depends_on = [azurerm_private_dns_zone_virtual_network_link.flexpsql]
4243

4344
lifecycle {

0 commit comments

Comments
 (0)