From dbf4965c9bb8a9de5ade4cb60cdae3fd618400d2 Mon Sep 17 00:00:00 2001 From: Jo Date: Wed, 22 May 2024 11:09:35 -0400 Subject: [PATCH] corrected db protection for production --- tofu/modules/data-store/database/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tofu/modules/data-store/database/main.tf b/tofu/modules/data-store/database/main.tf index a37b84478..436c26136 100644 --- a/tofu/modules/data-store/database/main.tf +++ b/tofu/modules/data-store/database/main.tf @@ -50,8 +50,8 @@ module "db" { major_engine_version = "8.0" # Database Deletion Protection - skip_final_snapshot = true #var.environment != "sandbox" ? false : true - deletion_protection = false #var.environment != "sandbox" ? true : false + skip_final_snapshot = var.environment == "production" ? false : true + deletion_protection = var.environment == "production" ? true : false parameters = [ {