Skip to content

Commit

Permalink
Enable EXTERNAL_MANAGED resource examples for GA (GoogleCloudPlatform…
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Ellis authored and lcaggio committed Mar 16, 2022
1 parent 116460e commit e39b048
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions mmv1/products/compute/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ overrides: !ruby/object:Overrides::ResourceOverrides
neg_name: "network-endpoint"
- !ruby/object:Provider::Terraform::Examples
name: "backend_service_external_managed"
min_version: beta
primary_resource_id: "default"
vars:
backend_service_name: "backend-service"
Expand Down Expand Up @@ -1046,7 +1045,6 @@ overrides: !ruby/object:Overrides::ResourceOverrides
- "target"
- !ruby/object:Provider::Terraform::Examples
name: "global_forwarding_rule_external_managed"
min_version: beta
primary_resource_id: "default"
vars:
forwarding_rule_name: "global-rule"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
resource "google_compute_backend_service" "<%= ctx[:primary_resource_id] %>" {
provider = google-beta
name = "<%= ctx[:vars]['backend_service_name'] %>"
health_checks = [google_compute_health_check.default.id]
load_balancing_scheme = "EXTERNAL_MANAGED"
}

resource "google_compute_health_check" "default" {
provider = google-beta
name = "<%= ctx[:vars]['health_check_name'] %>"
http_health_check {
port = 80
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
resource "google_compute_global_forwarding_rule" "default" {
provider = google-beta
name = "<%= ctx[:vars]['forwarding_rule_name'] %>"
target = google_compute_target_http_proxy.default.id
port_range = "80"
load_balancing_scheme = "EXTERNAL_MANAGED"
}

resource "google_compute_target_http_proxy" "default" {
provider = google-beta
name = "<%= ctx[:vars]['http_proxy_name'] %>"
description = "a description"
url_map = google_compute_url_map.default.id
}

resource "google_compute_url_map" "default" {
provider = google-beta
name = "url-map-<%= ctx[:vars]['http_proxy_name'] %>"
description = "a description"
default_service = google_compute_backend_service.default.id
Expand All @@ -36,7 +33,6 @@ resource "google_compute_url_map" "default" {
}

resource "google_compute_backend_service" "default" {
provider = google-beta
name = "<%= ctx[:vars]['backend_service_name'] %>"
port_name = "http"
protocol = "HTTP"
Expand Down

0 comments on commit e39b048

Please sign in to comment.