Skip to content

Commit

Permalink
Prevent destruction of aws_db_instance
Browse files Browse the repository at this point in the history
  • Loading branch information
mjonas87 authored and Rayraegah committed Sep 2, 2019
1 parent b7a4fe0 commit a0deb62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ resource "aws_db_instance" "hasura" {
backup_retention_period = 7
backup_window = "04:00-06:00"
final_snapshot_identifier = "hasura"

lifecycle {
prevent_destroy = true
}
}

# -----------------------------------------------------------------------------
Expand Down

0 comments on commit a0deb62

Please sign in to comment.