Skip to content

Commit

Permalink
fix: (PSKD-975) Add public_network_access_enabled to azurerm_postgres…
Browse files Browse the repository at this point in the history
…ql_flexible_server resource (#411)
  • Loading branch information
ajeffowens authored Nov 21, 2024
1 parent 48ca24a commit 4a351f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/azurerm_postgresql_flex/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4a351f6

Please sign in to comment.