Skip to content

Commit

Permalink
Merge pull request #4656 from ministryofjustice/chaps-rds-restore
Browse files Browse the repository at this point in the history
skip final snapshot
  • Loading branch information
roncitrus authored Jan 22, 2024
2 parents bd63ec4 + e3e696e commit c5ce8d9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions terraform/environments/cdpt-chaps/database.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ resource "aws_db_instance" "database" {
password = aws_secretsmanager_secret_version.db_password.secret_string
vpc_security_group_ids = [aws_security_group.db.id]
depends_on = [aws_security_group.db]
# snapshot_identifier = local.application_data.accounts[local.environment].db_snapshot_identifier
skip_final_snapshot = true
# snapshot_identifier = local.application_data.accounts[local.environment].db_snapshot_identifier
db_subnet_group_name = aws_db_subnet_group.db.id
final_snapshot_identifier = "final"
publicly_accessible = true
# final_snapshot_identifier = "final"
publicly_accessible = true
}

resource "aws_db_instance_role_association" "database" {
Expand Down

0 comments on commit c5ce8d9

Please sign in to comment.