diff --git a/network_services_tls_route_basic/main.tf b/network_services_tls_route_basic/main.tf index 822dcf57..9c4758f9 100644 --- a/network_services_tls_route_basic/main.tf +++ b/network_services_tls_route_basic/main.tf @@ -1,13 +1,15 @@ resource "google_compute_backend_service" "default" { - name = "my-backend-service-${local.name_suffix}" - health_checks = [google_compute_http_health_check.default.id] + name = "my-backend-service-${local.name_suffix}" + load_balancing_scheme = "INTERNAL_SELF_MANAGED" + health_checks = [google_compute_health_check.default.id] } -resource "google_compute_http_health_check" "default" { - name = "backend-service-health-check-${local.name_suffix}" - request_path = "/" - check_interval_sec = 1 - timeout_sec = 1 +resource "google_compute_health_check" "default" { + name = "backend-service-health-check-${local.name_suffix}" + + https_health_check { + port = 443 + } } resource "google_network_services_tls_route" "default" { diff --git a/network_services_tls_route_gateway_basic/main.tf b/network_services_tls_route_gateway_basic/main.tf index 10ad60b4..d47b03f2 100644 --- a/network_services_tls_route_gateway_basic/main.tf +++ b/network_services_tls_route_gateway_basic/main.tf @@ -1,13 +1,15 @@ resource "google_compute_backend_service" "default" { - name = "my-backend-service-${local.name_suffix}" - health_checks = [google_compute_http_health_check.default.id] + name = "my-backend-service-${local.name_suffix}" + load_balancing_scheme = "INTERNAL_SELF_MANAGED" + health_checks = [google_compute_health_check.default.id] } -resource "google_compute_http_health_check" "default" { - name = "backend-service-health-check-${local.name_suffix}" - request_path = "/" - check_interval_sec = 1 - timeout_sec = 1 +resource "google_compute_health_check" "default" { + name = "backend-service-health-check-${local.name_suffix}" + + https_health_check { + port = 443 + } } resource "google_network_services_gateway" "default" { diff --git a/network_services_tls_route_mesh_basic/main.tf b/network_services_tls_route_mesh_basic/main.tf index 9567d1dd..9c8e5615 100644 --- a/network_services_tls_route_mesh_basic/main.tf +++ b/network_services_tls_route_mesh_basic/main.tf @@ -1,13 +1,15 @@ resource "google_compute_backend_service" "default" { - name = "my-backend-service-${local.name_suffix}" - health_checks = [google_compute_http_health_check.default.id] + name = "my-backend-service-${local.name_suffix}" + load_balancing_scheme = "INTERNAL_SELF_MANAGED" + health_checks = [google_compute_health_check.default.id] } -resource "google_compute_http_health_check" "default" { - name = "backend-service-health-check-${local.name_suffix}" - request_path = "/" - check_interval_sec = 1 - timeout_sec = 1 +resource "google_compute_health_check" "default" { + name = "backend-service-health-check-${local.name_suffix}" + + https_health_check { + port = 443 + } } resource "google_network_services_mesh" "default" {