Skip to content

Commit

Permalink
Throw error if deployment would delete database (#1503)
Browse files Browse the repository at this point in the history
  • Loading branch information
vivid-cpreston authored Dec 14, 2023
1 parent 5f87533 commit 64470b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions terraform/rds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ resource "aws_db_instance" "wfnews_pgsqlDB" {
db_subnet_group_name = aws_db_subnet_group.wfnews_db_subnet_group.name
enabled_cloudwatch_logs_exports = ["postgresql"]
parameter_group_name = "wfnews-manual"

lifecycle {
prevent_destroy = true
}
}

/*
Expand Down

0 comments on commit 64470b8

Please sign in to comment.