diff --git a/modules/eks/rds.tf b/modules/eks/rds.tf index abd9d03..b116dd7 100644 --- a/modules/eks/rds.tf +++ b/modules/eks/rds.tf @@ -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" @@ -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 }