Skip to content

Commit

Permalink
changed RDS db version to match version in target environment(minor u…
Browse files Browse the repository at this point in the history
…pgrade),added deletion protection for Production DB
  • Loading branch information
juddin927 committed Sep 25, 2024
1 parent 60a099c commit bc1f295
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/eks/rds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ resource "aws_db_instance" "this" {
storage_type = "gp3"
engine = "postgres"
apply_immediately = true
engine_version = "14.10"
engine_version = "14.12"
auto_minor_version_upgrade = true
allow_major_version_upgrade = false
instance_class = "db.t3.micro"
Expand All @@ -16,6 +16,7 @@ resource "aws_db_instance" "this" {
db_subnet_group_name = aws_db_subnet_group.this.name
vpc_security_group_ids = [aws_security_group.admin_db.id]
ca_cert_identifier = "rds-ca-rsa2048-g1"
deletion_protection = terraform.workspace == "production" ? true : false

tags = var.tags
}
Expand Down

0 comments on commit bc1f295

Please sign in to comment.