diff --git a/infrastructure/terraform/main.tf b/infrastructure/terraform/main.tf index 23a405da..ac90f381 100644 --- a/infrastructure/terraform/main.tf +++ b/infrastructure/terraform/main.tf @@ -39,4 +39,7 @@ resource "aws_db_instance" "default" { password = jsondecode(data.aws_secretsmanager_secret_version.db_credentials.secret_string)["db_assessment_model_password"] parameter_group_name = "default.postgres14" skip_final_snapshot = true + lifecycle { + prevent_destroy = true + } }