From eb6043bfdb94e2b3016da9387000b7ceb1bb570b Mon Sep 17 00:00:00 2001 From: riccardolocci <36544873+riccardolocci@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:45:13 +0200 Subject: [PATCH] Added create_before_destroy argument to prevent module errors when updating customer gateway (#53) --- main.tf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.tf b/main.tf index bdef9a3..f9c343f 100644 --- a/main.tf +++ b/main.tf @@ -26,6 +26,10 @@ resource "aws_customer_gateway" "default" { ip_address = var.customer_gateway_ip_address type = "ipsec.1" tags = module.this.tags + + lifecycle { + create_before_destroy = true + } } module "logs" {