Skip to content

Commit

Permalink
corrected db protection for production (#421)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdbass authored May 22, 2024
1 parent 5c2c710 commit b2e096c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tofu/modules/data-store/database/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
{
Expand Down

0 comments on commit b2e096c

Please sign in to comment.