Skip to content

Commit

Permalink
chore: add lb balancing mode
Browse files Browse the repository at this point in the history
  • Loading branch information
assafgi committed Aug 26, 2024
1 parent 06c27e7 commit 9337ec7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions health_check.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ resource "google_compute_region_backend_service" "backend_service" {
health_checks = [google_compute_region_health_check.health_check.id]
network = data.google_compute_network.this[0].self_link
backend {
group = google_compute_instance_group.this.self_link
group = google_compute_instance_group.this.self_link
balancing_mode = "CONNECTION"
}
depends_on = [module.network, module.shared_vpc_peering, google_compute_instance_group.this]
}
Expand Down Expand Up @@ -78,7 +79,8 @@ resource "google_compute_region_backend_service" "ui_backend_service" {
health_checks = [google_compute_region_health_check.ui_check.id]
network = data.google_compute_network.this[0].self_link
backend {
group = google_compute_instance_group.this.self_link
group = google_compute_instance_group.this.self_link
balancing_mode = "CONNECTION"
}
depends_on = [module.network, module.shared_vpc_peering, google_compute_instance_group.this]
}
Expand Down

0 comments on commit 9337ec7

Please sign in to comment.