Skip to content

Commit 9122d19

Browse files
authored
feat: Change final_snapshot_identifier when snapshot_identifier changes (#591)
feat: Change `final_snapshot_identifier` when `snapshot_identifier` changes
1 parent 892ae69 commit 9122d19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/db_instance/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ resource "random_id" "snapshot_identifier" {
2020
count = var.create && !var.skip_final_snapshot ? 1 : 0
2121

2222
keepers = {
23-
id = var.identifier
23+
id = var.identifier
24+
snapshot_identifier = var.snapshot_identifier
2425
}
2526

2627
byte_length = 4

0 commit comments

Comments
 (0)