Skip to content

Commit

Permalink
Merge pull request #18 from leancodepl/fix/postgresql-allow-all
Browse files Browse the repository at this point in the history
Respect firewall allow_all variable
  • Loading branch information
lukaszgarstecki authored May 28, 2024
2 parents 70651b6 + 275040b commit 010055c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions postgresql/server.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ resource "azurerm_postgresql_flexible_server_active_directory_administrator" "ad
}

resource "azurerm_postgresql_flexible_server_firewall_rule" "allow_all" {
count = var.firewall.allow_all ? 1 : 0
server_id = azurerm_postgresql_flexible_server.main.id
name = "allow-all"

Expand Down

0 comments on commit 010055c

Please sign in to comment.