diff --git a/src/domains/gps-common/03_postgresql_gpd_db.tf b/src/domains/gps-common/03_postgresql_gpd_db.tf
index eaa8cb1ab..61648f67f 100644
--- a/src/domains/gps-common/03_postgresql_gpd_db.tf
+++ b/src/domains/gps-common/03_postgresql_gpd_db.tf
@@ -69,7 +69,7 @@ module "postgres_flexible_server_private_db" {
delegated_subnet_id = module.postgres_flexible_snet[0].id
public_network_access_enabled = var.pgres_flex_params.public_network_access_enabled
- ### admin credentials
+ ### admin credentials
administrator_login = data.azurerm_key_vault_secret.pgres_admin_login.value
administrator_password = data.azurerm_key_vault_secret.pgres_admin_pwd.value
@@ -89,7 +89,7 @@ module "postgres_flexible_server_private_db" {
tags = var.tags
- # alert section
+ # alert section
custom_metric_alerts = var.pgres_flex_params.alerts_enabled ? var.pgflex_public_metric_alerts : {}
alerts_enabled = var.pgres_flex_params.alerts_enabled
diff --git a/src/domains/gps-common/03_postgresql_replica.tf b/src/domains/gps-common/03_postgresql_replica.tf
index 9f67f3282..a676027bc 100644
--- a/src/domains/gps-common/03_postgresql_replica.tf
+++ b/src/domains/gps-common/03_postgresql_replica.tf
@@ -35,15 +35,20 @@ module "postgresql_gpd_replica_db" {
delegated_subnet_id = module.postgres_flexible_snet_replica[0].id
private_endpoint_enabled = var.pgres_flex_params.private_endpoint_enabled
- sku_name = "GP_Standard_D16ds_v4" # var.pgres_flex_params.sku_name NEWGPD-DB : DEPRECATED switch to var.pgres_flex_params.sku_name
+ sku_name = var.pgres_flex_params.sku_name
high_availability_enabled = false
pgbouncer_enabled = var.pgres_flex_params.pgbouncer_enabled
- source_server_id = module.postgres_flexible_server_private[0].id # NEWGPD-DB : DEPRECATED switch to new istance postgres_flexible_server_private_db
+ storage_mb = var.pgres_flex_params.storage_mb
+
+ source_server_id = module.postgres_flexible_server_private_db.id #NEWGPD-DB : DEPRECATED switch to new istance postgres_flexible_server_private_db
diagnostic_settings_enabled = false
+ max_connections = var.pgres_flex_params.max_connections
+ max_worker_process = var.pgres_flex_params.max_worker_process
+
log_analytics_workspace_id = data.azurerm_log_analytics_workspace.log_analytics.id
zone = 2
tags = var.tags
diff --git a/src/domains/gps-common/99_main.tf b/src/domains/gps-common/99_main.tf
index f3a312e06..be0483d72 100644
--- a/src/domains/gps-common/99_main.tf
+++ b/src/domains/gps-common/99_main.tf
@@ -35,5 +35,6 @@ data "azurerm_subscription" "current" {}
data "azurerm_client_config" "current" {}
module "__v3__" {
- source = "git::https://github.com/pagopa/terraform-azurerm-v3?ref=v8.63.0"
-}
\ No newline at end of file
+ # 8.64.0
+ source = "git::https://github.com/pagopa/terraform-azurerm-v3?ref=ff49c94c7bfb8f2867e550483d8acc125bf516a7"
+}
diff --git a/src/domains/gps-common/README.md b/src/domains/gps-common/README.md
index 94db18f62..7f0bb060e 100644
--- a/src/domains/gps-common/README.md
+++ b/src/domains/gps-common/README.md
@@ -13,7 +13,7 @@
| Name | Source | Version |
|------|--------|---------|
-| [\_\_v3\_\_](#module\_\_\_v3\_\_) | git::https://github.com/pagopa/terraform-azurerm-v3 | v8.63.0 |
+| [\_\_v3\_\_](#module\_\_\_v3\_\_) | git::https://github.com/pagopa/terraform-azurerm-v3 | ff49c94c7bfb8f2867e550483d8acc125bf516a7 |
| [flows](#module\_flows) | ./.terraform/modules/__v3__/storage_account | n/a |
| [gpd\_cosmosdb\_containers](#module\_gpd\_cosmosdb\_containers) | ./.terraform/modules/__v3__/cosmosdb_sql_container | n/a |
| [gpd\_cosmosdb\_database](#module\_gpd\_cosmosdb\_database) | ./.terraform/modules/__v3__/cosmosdb_sql_database | n/a |
diff --git a/src/domains/gps-common/env/weu-uat/terraform.tfvars b/src/domains/gps-common/env/weu-uat/terraform.tfvars
index 85eb63674..6a7f8be2d 100644
--- a/src/domains/gps-common/env/weu-uat/terraform.tfvars
+++ b/src/domains/gps-common/env/weu-uat/terraform.tfvars
@@ -72,7 +72,7 @@ pgres_flex_params = {
standby_availability_zone = 2
pgbouncer_enabled = true
alerts_enabled = false
- max_connections = 5000
+ max_connections = 1700
enable_private_dns_registration = true
enable_private_dns_registration_virtual_endpoint = false
max_worker_process = 32