Skip to content

Commit cc0b66c

Browse files
updated files
1 parent 74eefa6 commit cc0b66c

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

main.tf

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ module "postgresql_server_configuration" {
8181
for_each = var.server_configuration
8282

8383
postgresql_server_id = module.postgresql_server.id
84-
84+
8585
configuration_key = each.key
8686
configuration_value = each.value
8787
}
@@ -120,4 +120,8 @@ module "private_endpoint" {
120120
request_message = var.request_message
121121
tags = local.private_endpoint_tags
122122
private_service_connection_name = module.resource_names["private_service_connection"].standard
123-
}
123+
}
124+
125+
// In your server_configuration map, remove these if PgBouncer is not enabled:
126+
// "pgbouncer.max_prepared_statements" = "..."
127+
// "pgbouncer.ignore_startup_parameters" = "..."

variables.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,12 @@ variable "postgres_version" {
146146
variable "server_configuration" {
147147
description = "Map of configurations to apply to the postgres flexible server"
148148
type = map(string)
149-
default = {}
149+
default = {
150+
# Remove PgBouncer keys unless PgBouncer is enabled
151+
# "pgbouncer.max_prepared_statements" = "..."
152+
# "pgbouncer.ignore_startup_parameters" = "..."
153+
# other configs...
154+
}
150155
}
151156

152157
variable "delegated_subnet_id" {

0 commit comments

Comments
 (0)