Skip to content

Commit 533a681

Browse files
Merge pull request #276 from NHSDigital/CCM-7890_StopeTableDestructionAfterBackup
CCM-7890 fix table recovery name
2 parents 38b7422 + 3732ad4 commit 533a681

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

infrastructure/terraform/modules/backend-api/dynamodb_table_templates.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,10 @@ resource "aws_dynamodb_table" "templates" {
3232
tags = {
3333
"NHSE-Enable-Dynamo-Backup" = var.enable_backup ? "True": "False"
3434
}
35+
36+
lifecycle {
37+
ignore_changes = [
38+
name, # To support backup and restore which will result in a new name otherwise
39+
]
40+
}
3541
}

0 commit comments

Comments
 (0)