Skip to content

Commit

Permalink
Adding create_before_destroy lifecycle option for google_compute_url_…
Browse files Browse the repository at this point in the history
…map.
  • Loading branch information
kameshraj committed Feb 4, 2025
1 parent 44c17b2 commit 59bf837
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 @@ -168,6 +168,10 @@ resource "google_compute_url_map" "default" {
count = var.create_url_map ? 1 : 0
name = "${var.name}-url-map"
default_service = google_compute_backend_service.default[keys(var.backends)[0]].self_link

lifecycle {
create_before_destroy = true
}
}

resource "google_compute_url_map" "https_redirect" {
Expand Down

0 comments on commit 59bf837

Please sign in to comment.