From 76e24e57ca84cb897a07de1299ac4633b9a750d8 Mon Sep 17 00:00:00 2001 From: riccardolocci <36544873+riccardolocci@users.noreply.github.com> Date: Tue, 15 Oct 2024 11:19:45 +0200 Subject: [PATCH] Added create_before_destroy argument to prevent module errors when updating customer gateway --- 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" {