From 5f5df571925895ad1fdf5a3bd04e539aa13f5a1d Mon Sep 17 00:00:00 2001 From: Vladimir Samoylov <51059484+cageyv@users.noreply.github.com> Date: Fri, 9 Feb 2024 19:10:26 +0700 Subject: [PATCH] fix: Added create_before_destroy to aws_customer_gateway (#1036) Co-authored-by: Anton Babenko --- main.tf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.tf b/main.tf index 9d19218f1..ef65f2be7 100644 --- a/main.tf +++ b/main.tf @@ -1123,6 +1123,10 @@ resource "aws_customer_gateway" "this" { var.tags, var.customer_gateway_tags, ) + + lifecycle { + create_before_destroy = true + } } ################################################################################