Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions mmv1/products/compute/BackendService.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ samples:
- name: 'backend_service_basic'
resource_id_vars:
backend_service_name: 'backend-service'
http_health_check_name: 'health-check'
health_check_name: 'health-check'
- name: 'backend_service_external_iap'
primary_resource_id: 'default'
steps:
Expand All @@ -80,7 +80,7 @@ samples:
- name: 'backend_service_cache_simple'
resource_id_vars:
backend_service_name: 'backend-service'
http_health_check_name: 'health-check'
health_check_name: 'health-check'
- name: 'backend_service_cache_include_http_headers'
primary_resource_id: 'default'
steps:
Expand All @@ -99,14 +99,14 @@ samples:
- name: 'backend_service_cache'
resource_id_vars:
backend_service_name: 'backend-service'
http_health_check_name: 'health-check'
health_check_name: 'health-check'
- name: 'backend_service_cache_bypass_cache_on_request_headers'
primary_resource_id: 'default'
steps:
- name: 'backend_service_cache_bypass_cache_on_request_headers'
resource_id_vars:
backend_service_name: 'backend-service'
http_health_check_name: 'health-check'
health_check_name: 'health-check'
- name: 'backend_service_traffic_director_round_robin'
primary_resource_id: 'default'
min_version: 'beta'
Expand Down Expand Up @@ -961,7 +961,7 @@ properties:
external load balancing. A backend service created for one type of
load balancing cannot be used with the other. For more information, refer to
[Choosing a load balancer](https://cloud.google.com/load-balancing/docs/backend-service).
default_value: "EXTERNAL"
default_value: "EXTERNAL_MANAGED"
# If you're modifying this value, it probably means Global ILB is now
# an option. If that's the case, all of the documentation is based on
# this resource supporting external load balancing only.
Expand Down
2 changes: 1 addition & 1 deletion mmv1/products/compute/GlobalForwardingRule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ properties:

For more information about forwarding rules, refer to
[Forwarding rule concepts](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts).
default_value: "EXTERNAL"
default_value: "EXTERNAL_MANAGED"
enum_values:
- 'EXTERNAL'
- 'EXTERNAL_MANAGED'
Expand Down
2 changes: 1 addition & 1 deletion mmv1/products/iap/WebBackendService.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ samples:
config_path: templates/terraform/samples/services/compute/backend_service_basic.tf.tmpl
resource_id_vars:
backend_service_name: 'backend-service'
http_health_check_name: 'health-check'
health_check_name: 'health-check'
parameters:
properties:
- name: 'name'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
resource "google_compute_backend_service" "{{$.PrimaryResourceId}}" {
name = "{{index $.ResourceIdVars "backend_service_name"}}"
health_checks = [google_compute_http_health_check.default.id]
health_checks = [google_compute_health_check.default.id]
}

resource "google_compute_http_health_check" "default" {
name = "{{index $.ResourceIdVars "http_health_check_name"}}"
request_path = "/"
resource "google_compute_health_check" "default" {
name = "{{index $.ResourceIdVars "health_check_name"}}"
check_interval_sec = 1
timeout_sec = 1
http_health_check {
port = 80
request_path = "/"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
resource "google_compute_backend_service" "{{$.PrimaryResourceId}}" {
name = "{{index $.ResourceIdVars "backend_service_name"}}"
health_checks = [google_compute_http_health_check.default.id]
health_checks = [google_compute_health_check.default.id]
enable_cdn = true
cdn_policy {
cache_mode = "CACHE_ALL_STATIC"
Expand All @@ -12,9 +12,12 @@ resource "google_compute_backend_service" "{{$.PrimaryResourceId}}" {
}
}

resource "google_compute_http_health_check" "default" {
name = "{{index $.ResourceIdVars "http_health_check_name"}}"
request_path = "/"
resource "google_compute_health_check" "default" {
name = "{{index $.ResourceIdVars "health_check_name"}}"
check_interval_sec = 1
timeout_sec = 1
http_health_check {
port = 80
request_path = "/"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
resource "google_compute_backend_service" "{{$.PrimaryResourceId}}" {
name = "{{index $.ResourceIdVars "backend_service_name"}}"
health_checks = [google_compute_http_health_check.default.id]
health_checks = [google_compute_health_check.default.id]
enable_cdn = true
cdn_policy {
cache_mode = "CACHE_ALL_STATIC"
Expand All @@ -20,9 +20,12 @@ resource "google_compute_backend_service" "{{$.PrimaryResourceId}}" {
}
}

resource "google_compute_http_health_check" "default" {
name = "{{index $.ResourceIdVars "http_health_check_name"}}"
request_path = "/"
resource "google_compute_health_check" "default" {
name = "{{index $.ResourceIdVars "health_check_name"}}"
check_interval_sec = 1
timeout_sec = 1
http_health_check {
port = 80
request_path = "/"
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
resource "google_compute_backend_service" "{{$.PrimaryResourceId}}" {
name = "{{index $.ResourceIdVars "backend_service_name"}}"
health_checks = [google_compute_http_health_check.default.id]
health_checks = [google_compute_health_check.default.id]
enable_cdn = true
cdn_policy {
signed_url_cache_max_age_sec = 7200
}
}

resource "google_compute_http_health_check" "default" {
name = "{{index $.ResourceIdVars "http_health_check_name"}}"
request_path = "/"
resource "google_compute_health_check" "default" {
name = "{{index $.ResourceIdVars "health_check_name"}}"
check_interval_sec = 1
timeout_sec = 1
http_health_check {
port = 80
request_path = "/"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,19 @@ resource "google_compute_backend_service" "default" {
group = google_compute_instance_group.default[each.key].self_link
}

health_checks = [google_compute_http_health_check.default[each.key].self_link]
health_checks = [google_compute_health_check.default[each.key].self_link]
port_name = "http"
}

resource "google_compute_http_health_check" "default" {
resource "google_compute_health_check" "default" {
for_each = local.instances
name = "${each.key}-hc"
request_path = "/"
check_interval_sec = 1
timeout_sec = 1
http_health_check {
port = 80
request_path = "/"
}
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ resource "google_compute_backend_service" "example_backend" {
group = google_compute_instance_group_manager.webservers.instance_group
}

health_checks = [google_compute_http_health_check.default.id]
health_checks = [google_compute_health_check.default.id]
}

resource "google_compute_instance_group_manager" "webservers" {
Expand Down Expand Up @@ -51,9 +51,12 @@ resource "google_compute_instance_template" "webserver" {
}
}

resource "google_compute_http_health_check" "default" {
resource "google_compute_health_check" "default" {
name = "test"
request_path = "/"
check_interval_sec = 1
timeout_sec = 1
http_health_check {
port = 80
request_path = "/"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,15 @@ resource "google_compute_backend_service" "default" {
protocol = "HTTP"
timeout_sec = 10

health_checks = [google_compute_http_health_check.default.id]
health_checks = [google_compute_health_check.default.id]
}

resource "google_compute_http_health_check" "default" {
resource "google_compute_health_check" "default" {
name = "check-{{index $.ResourceIdVars "backend_service_name"}}"
request_path = "/"
check_interval_sec = 1
timeout_sec = 1
http_health_check {
port = 80
request_path = "/"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ resource "google_compute_url_map" "default" {
}

resource "google_compute_backend_service" "default" {
name = "{{index $.ResourceIdVars "backend_service_name"}}"
port_name = "http"
protocol = "HTTP"
timeout_sec = 10
name = "{{index $.ResourceIdVars "backend_service_name"}}"
port_name = "http"
protocol = "HTTP"
timeout_sec = 10
load_balancing_scheme = "EXTERNAL"

health_checks = [google_compute_http_health_check.default.id]
}
Expand All @@ -51,7 +52,8 @@ resource "google_compute_http_health_check" "default" {
}

resource "google_compute_global_forwarding_rule" "default" {
name = "{{index $.ResourceIdVars "forwarding_rule_name"}}"
target = google_compute_target_https_proxy.default.id
port_range = 443
name = "{{index $.ResourceIdVars "forwarding_rule_name"}}"
target = google_compute_target_https_proxy.default.id
port_range = 443
load_balancing_scheme = "EXTERNAL"
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@ resource "google_compute_url_map" "default" {
}

resource "google_compute_backend_service" "default" {
name = "backend-service"
port_name = "http"
protocol = "HTTP"
timeout_sec = 10
health_checks = [google_compute_http_health_check.default.id]
name = "backend-service"
port_name = "http"
protocol = "HTTP"
timeout_sec = 10
load_balancing_scheme = "EXTERNAL"
health_checks = [google_compute_http_health_check.default.id]
}

resource "google_compute_http_health_check" "default" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ resource "google_compute_url_map" "default" {
}

resource "google_compute_backend_service" "default" {
name = "{{index $.ResourceIdVars "backend_service_name"}}"
port_name = "http"
protocol = "HTTP"
timeout_sec = 10
name = "{{index $.ResourceIdVars "backend_service_name"}}"
port_name = "http"
protocol = "HTTP"
timeout_sec = 10
load_balancing_scheme = "EXTERNAL"

health_checks = [google_compute_http_health_check.default.id]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ resource "google_compute_url_map" "default" {
}

resource "google_compute_backend_service" "default" {
name = "{{index $.ResourceIdVars "backend_service_name"}}"
port_name = "http"
protocol = "HTTP"
timeout_sec = 10
name = "{{index $.ResourceIdVars "backend_service_name"}}"
port_name = "http"
protocol = "HTTP"
timeout_sec = 10
load_balancing_scheme = "EXTERNAL"

health_checks = [google_compute_http_health_check.default.id]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ resource "google_compute_url_map" "default" {
}

resource "google_compute_backend_service" "default" {
name = "{{index $.ResourceIdVars "backend_service_name"}}"
port_name = "http"
protocol = "HTTP"
timeout_sec = 10
name = "{{index $.ResourceIdVars "backend_service_name"}}"
port_name = "http"
protocol = "HTTP"
timeout_sec = 10
load_balancing_scheme = "EXTERNAL"

health_checks = [google_compute_http_health_check.default.id]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ resource "google_compute_url_map" "default" {
}

resource "google_compute_backend_service" "default" {
name = "{{index $.ResourceIdVars "backend_service_name"}}"
port_name = "http"
protocol = "HTTP"
timeout_sec = 10
name = "{{index $.ResourceIdVars "backend_service_name"}}"
port_name = "http"
protocol = "HTTP"
timeout_sec = 10
load_balancing_scheme = "EXTERNAL"

health_checks = [google_compute_http_health_check.default.id]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ resource "google_compute_url_map" "default" {
}

resource "google_compute_backend_service" "default" {
name = "{{index $.ResourceIdVars "backend_service_name"}}"
port_name = "http"
protocol = "HTTP"
timeout_sec = 10
name = "{{index $.ResourceIdVars "backend_service_name"}}"
port_name = "http"
protocol = "HTTP"
timeout_sec = 10
load_balancing_scheme = "EXTERNAL"

health_checks = [google_compute_http_health_check.default.id]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,12 @@ resource "google_compute_url_map" "default" {
}

resource "google_compute_backend_service" "default" {
provider = google-beta
name = "{{index $.ResourceIdVars "backend_service_name"}}"
port_name = "http"
protocol = "HTTP"
timeout_sec = 10
provider = google-beta
name = "{{index $.ResourceIdVars "backend_service_name"}}"
port_name = "http"
protocol = "HTTP"
timeout_sec = 10
load_balancing_scheme = "EXTERNAL"

health_checks = [google_compute_http_health_check.default.id]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ resource "google_compute_ssl_certificate" "default" {
}

resource "google_compute_backend_service" "default" {
name = "{{index $.ResourceIdVars "backend_service_name"}}"
protocol = "SSL"
health_checks = [google_compute_health_check.default.id]
name = "{{index $.ResourceIdVars "backend_service_name"}}"
protocol = "SSL"
load_balancing_scheme = "EXTERNAL"
health_checks = [google_compute_health_check.default.id]
}

resource "google_compute_health_check" "default" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ resource "google_compute_url_map" "{{$.PrimaryResourceId}}" {
}

resource "google_compute_backend_service" "login" {
name = "{{index $.ResourceIdVars "login_backend_service_name"}}"
port_name = "http"
protocol = "HTTP"
timeout_sec = 10
name = "{{index $.ResourceIdVars "login_backend_service_name"}}"
port_name = "http"
protocol = "HTTP"
timeout_sec = 10
load_balancing_scheme = "EXTERNAL"

health_checks = [google_compute_http_health_check.default.id]
}
Expand Down
Loading
Loading