From 7f6a0fe4cdc29c8f38a358f117a4162fbab8c58c Mon Sep 17 00:00:00 2001 From: Vincent Lee Date: Fri, 4 Apr 2025 18:45:14 -0400 Subject: [PATCH] feat: Change `final_snapshot_identifier` when `snapshot_identifier` changes --- modules/db_instance/main.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/db_instance/main.tf b/modules/db_instance/main.tf index 48d26755..4b908963 100644 --- a/modules/db_instance/main.tf +++ b/modules/db_instance/main.tf @@ -20,7 +20,8 @@ resource "random_id" "snapshot_identifier" { count = var.create && !var.skip_final_snapshot ? 1 : 0 keepers = { - id = var.identifier + id = var.identifier + snapshot_identifier = var.snapshot_identifier } byte_length = 4