From a55f70b01d0c93fc12f26556f49051ca2cbba2de Mon Sep 17 00:00:00 2001 From: Alisson Ramos de Oliveira Date: Wed, 29 Jan 2025 11:53:37 +0000 Subject: [PATCH] fix: Without create_before_destroy is not possible to rename a subnet_group --- main.tf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.tf b/main.tf index 69a3b9b..4cc53a5 100644 --- a/main.tf +++ b/main.tf @@ -286,6 +286,10 @@ resource "aws_elasticache_subnet_group" "this" { subnet_ids = var.subnet_ids tags = local.tags + + lifecycle { + create_before_destroy = true + } } ################################################################################