Skip to content

Commit

Permalink
create before destroy does not work with NAT router
Browse files Browse the repository at this point in the history
  • Loading branch information
sjmiller609 committed Jul 23, 2019
1 parent 1c4ffb7 commit 5d80cd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ steps:
settings:
webhook:
from_secret: WEBHOOK_URL
channel: infrastructure
channel: ci-debug
username: terraform-ci
template: >
{{repo.name}}
Expand All @@ -142,7 +142,7 @@ steps:
settings:
webhook:
from_secret: WEBHOOK_URL
channel: infrastructure
channel: ci-debug
username: terraform-ci
template: >
{{repo.name}}
Expand Down
3 changes: 1 addition & 2 deletions network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ resource "google_compute_router_nat" "nat" {
source_subnetwork_ip_ranges_to_nat = "LIST_OF_SUBNETWORKS"

lifecycle {
create_before_destroy = true
ignore_changes = [name]
ignore_changes = [name]
}

subnetwork {
Expand Down

0 comments on commit 5d80cd9

Please sign in to comment.