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 (#53)
  • Loading branch information
riccardolocci authored Oct 16, 2024
1 parent cc2a02f commit eb6043b
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 eb6043b

Please sign in to comment.