Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document compute_backend_service set types #877

Merged
merged 1 commit into from
Jun 24, 2019
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: |-

# google\_compute\_backend\_service

Provide acces to a Backend Service's attribute. For more information
Provide access to a Backend Service's attribute. For more information
see [the official documentation](https://cloud.google.com/compute/docs/load-balancing/http/backend-service)
and the [API](https://cloud.google.com/compute/docs/reference/latest/backendServices).

Expand All @@ -18,6 +18,11 @@ and the [API](https://cloud.google.com/compute/docs/reference/latest/backendServ
data "google_compute_backend_service" "baz" {
name = "foobar"
}

resource "google_compute_backend_service" "default" {
name = "backend-service"
health_checks = ["${tolist(data.google_compute_backend_service.baz.health_checks)[0]}"]
}
```

## Argument Reference
Expand Down Expand Up @@ -52,6 +57,6 @@ In addition to the arguments listed above, the following attributes are exported

* `timeout_sec` - The number of seconds to wait for a backend to respond to a request before considering the request failed.

* `backend` - The list of backends that serve this Backend Service.
* `backend` - The set of backends that serve this Backend Service.

* `health_checks` - The list of HTTP/HTTPS health checks used by the Backend Service.
* `health_checks` - The set of HTTP/HTTPS health checks used by the Backend Service.
4 changes: 2 additions & 2 deletions website/docs/r/compute_backend_service.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ The following arguments are supported:

* `health_checks` -
(Required)
The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource
The set of URLs to the HttpHealthCheck or HttpsHealthCheck resource
for health checking this BackendService. Currently at most one health
check can be specified, and a health check is required.
For internal load balancing, a URL to a HealthCheck resource must be specified instead.
Expand Down Expand Up @@ -94,7 +94,7 @@ The following arguments are supported:

* `backend` -
(Optional)
The list of backends that serve this BackendService. Structure is documented below.
The set of backends that serve this BackendService. Structure is documented below.

* `cdn_policy` -
(Optional)
Expand Down