Skip to content

Commit

Permalink
fix: Fixed disabling pgbouncer on boostable tier
Browse files Browse the repository at this point in the history
  • Loading branch information
dploeger committed Aug 23, 2023
1 parent dca2cab commit fc81767
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion params.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Enable PGBouncer on flexible servers who don't use the Boostable-Tier
resource "azurerm_postgresql_flexible_server_configuration" "pgbouncer" {
count = var.database_flexible ? 1 : 0
count = var.database_flexible && !startswith(var.database_host_sku, "B_") ? 1 : 0
name = "pgbouncer.enabled"
value = "true"
server_id = azurerm_postgresql_flexible_server.server[0].id
Expand Down

0 comments on commit fc81767

Please sign in to comment.