Skip to content

Commit

Permalink
Added create_before_destroy argument to prevent module errors when up…
Browse files Browse the repository at this point in the history
…dating customer gateway
  • Loading branch information
riccardolocci authored Oct 15, 2024
1 parent cc2a02f commit 76e24e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 76e24e5

Please sign in to comment.