From cbd1b0a9bbf760e25cbdb9983fd3723741c5558e Mon Sep 17 00:00:00 2001 From: Kiran Kumar Yenigala <51748133+kiran-yenigala-hmcts@users.noreply.github.com> Date: Mon, 17 Jun 2024 20:20:44 +0100 Subject: [PATCH] DTSRD-2845: Resize PG flexible server instance (#877) * Fix flyway schema issues on ithc * DTSRD-2845: Resize PG flexible server instance --- infrastructure/demo.tfvars | 1 + infrastructure/ithc.tfvars | 1 + infrastructure/main.tf | 1 + infrastructure/variables.tf | 5 +++++ 4 files changed, 8 insertions(+) diff --git a/infrastructure/demo.tfvars b/infrastructure/demo.tfvars index e69de29b..90a83e6b 100644 --- a/infrastructure/demo.tfvars +++ b/infrastructure/demo.tfvars @@ -0,0 +1 @@ +pgsql_sku = "GP_Standard_D2s_v3" diff --git a/infrastructure/ithc.tfvars b/infrastructure/ithc.tfvars index e69de29b..90a83e6b 100644 --- a/infrastructure/ithc.tfvars +++ b/infrastructure/ithc.tfvars @@ -0,0 +1 @@ +pgsql_sku = "GP_Standard_D2s_v3" diff --git a/infrastructure/main.tf b/infrastructure/main.tf index 0cefd061..74aac95e 100644 --- a/infrastructure/main.tf +++ b/infrastructure/main.tf @@ -72,6 +72,7 @@ module "db-profile-sync-ref-data-v16" { subnet_suffix = "expanded" pgsql_version = "16" + pgsql_sku = var.pgsql_sku product = "rd" name = join("-", [var.product-v16, var.component-v16]) diff --git a/infrastructure/variables.tf b/infrastructure/variables.tf index 465c6cbc..42173df4 100644 --- a/infrastructure/variables.tf +++ b/infrastructure/variables.tf @@ -113,4 +113,9 @@ variable "pgsql_server_configuration" { value = "OFF" } ] +} + +variable "pgsql_sku" { + description = "The PGSql flexible server instance sku" + default = "GP_Standard_D4s_v3" } \ No newline at end of file