diff --git a/.changelog/5611.txt b/.changelog/5611.txt new file mode 100644 index 00000000000..62c84ad1882 --- /dev/null +++ b/.changelog/5611.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +compute: Added `EXTERNAL_MANAGED` as option for `load_balancing_scheme` in `google_compute_global_forwarding_rule` resource +``` diff --git a/website/docs/r/compute_global_forwarding_rule.html.markdown b/website/docs/r/compute_global_forwarding_rule.html.markdown index e8b433851a9..a5dad126edc 100644 --- a/website/docs/r/compute_global_forwarding_rule.html.markdown +++ b/website/docs/r/compute_global_forwarding_rule.html.markdown @@ -860,6 +860,61 @@ resource "google_compute_health_check" "default" { } } ``` +
+## Example Usage - Global Forwarding Rule External Managed + + +```hcl +resource "google_compute_global_forwarding_rule" "default" { + provider = google-beta + name = "global-rule" + 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 = "target-proxy" + description = "a description" + url_map = google_compute_url_map.default.id +} + +resource "google_compute_url_map" "default" { + provider = google-beta + name = "url-map-target-proxy" + description = "a description" + default_service = google_compute_backend_service.default.id + + host_rule { + hosts = ["mysite.com"] + path_matcher = "allpaths" + } + + path_matcher { + name = "allpaths" + default_service = google_compute_backend_service.default.id + + path_rule { + paths = ["/*"] + service = google_compute_backend_service.default.id + } + } +} + +resource "google_compute_backend_service" "default" { + provider = google-beta + name = "backend" + port_name = "http" + protocol = "HTTP" + timeout_sec = 10 + load_balancing_scheme = "EXTERNAL_MANAGED" +} +``` ## Example Usage - Private Service Connect Google Apis @@ -974,11 +1029,12 @@ The following arguments are supported: The value of INTERNAL_SELF_MANAGED means that this will be used for Internal Global HTTP(S) LB. The value of EXTERNAL means that this will be used for External Global Load Balancing (HTTP(S) LB, - External TCP/UDP LB, SSL Proxy) + External TCP/UDP LB, SSL Proxy). The value of EXTERNAL_MANAGED means + that this will be used for Global external HTTP(S) load balancers. ([Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html) only) Note: This field must be set "" if the global address is configured as a purpose of PRIVATE_SERVICE_CONNECT and addressType of INTERNAL. Default value is `EXTERNAL`. - Possible values are `EXTERNAL` and `INTERNAL_SELF_MANAGED`. + Possible values are `EXTERNAL`, `EXTERNAL_MANAGED`, and `INTERNAL_SELF_MANAGED`. * `metadata_filters` - (Optional)