From b2e096c6ad3cfa742d882a848f157804e879bb24 Mon Sep 17 00:00:00 2001 From: Jo Date: Wed, 22 May 2024 12:38:44 -0400 Subject: [PATCH] corrected db protection for production (#421) --- 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 = [ {