Skip to content

Commit

Permalink
fix: hotfix lock db version
Browse files Browse the repository at this point in the history
  • Loading branch information
preethamr committed Sep 20, 2024
1 parent bc919bf commit ee7e826
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions ops/modules/db-replica/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions ops/modules/db/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit ee7e826

Please sign in to comment.