Skip to content

Commit a55f70b

Browse files
committed
fix: Without create_before_destroy is not possible to rename a subnet_group
1 parent 7d8b70b commit a55f70b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,10 @@ resource "aws_elasticache_subnet_group" "this" {
286286
subnet_ids = var.subnet_ids
287287

288288
tags = local.tags
289+
290+
lifecycle {
291+
create_before_destroy = true
292+
}
289293
}
290294

291295
################################################################################

0 commit comments

Comments
 (0)