From ee7e82656888f931678a13ac6bddf56dfc717e5d Mon Sep 17 00:00:00 2001 From: preethamr Date: Fri, 20 Sep 2024 12:51:25 -0700 Subject: [PATCH] fix: hotfix lock db version --- ops/modules/db-replica/main.tf | 5 +++-- ops/modules/db/main.tf | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ops/modules/db-replica/main.tf b/ops/modules/db-replica/main.tf index d3c3c0b36d..5247821f51 100644 --- a/ops/modules/db-replica/main.tf +++ b/ops/modules/db-replica/main.tf @@ -3,7 +3,7 @@ resource "aws_db_instance" "db_read_replica" { replicate_source_db = var.replicate_source_db engine = "postgres" - engine_version = "14.10" + engine_version = "14.12" instance_class = var.instance_class @@ -20,7 +20,8 @@ resource "aws_db_instance" "db_read_replica" { maintenance_window = var.maintenance_window backup_retention_period = var.backup_retention_period backup_window = var.backup_window - auto_minor_version_upgrade = true + auto_minor_version_upgrade = false + allow_major_version_upgrade = false tags = merge( var.tags, diff --git a/ops/modules/db/main.tf b/ops/modules/db/main.tf index e2c0e71c2e..810e1b2fa4 100755 --- a/ops/modules/db/main.tf +++ b/ops/modules/db/main.tf @@ -4,7 +4,7 @@ resource "aws_db_instance" "db" { identifier = var.identifier engine = "postgres" - engine_version = "14.10" + engine_version = "14.12" instance_class = var.instance_class allocated_storage = var.allocated_storage @@ -21,8 +21,8 @@ resource "aws_db_instance" "db" { availability_zone = var.availability_zone - allow_major_version_upgrade = true - auto_minor_version_upgrade = true + allow_major_version_upgrade = false + auto_minor_version_upgrade = false apply_immediately = true max_allocated_storage = var.max_allocated_storage