Skip to content

Commit

Permalink
Add support for target_tcp_proxy (hashicorp#528)
Browse files Browse the repository at this point in the history
  • Loading branch information
enxebre authored and rosbo committed Oct 5, 2017
1 parent 6670c56 commit 46f5c11
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
72 changes: 72 additions & 0 deletions docs/r/compute_target_tcp_proxy.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
---
layout: "google"
page_title: "Google: google_compute_target_tcp_proxy"
sidebar_current: "docs-google-compute-target-tcp-proxy"
description: |-
Creates a Target TCP Proxy resource in GCE.
---

# google\_compute\_target\_tcp\_proxy

Creates a target TCP proxy resource in GCE. For more information see
[the official
documentation](https://cloud.google.com/compute/docs/load-balancing/tcp-ssl/tcp-proxy) and
[API](https://cloud.google.com/compute/docs/reference/latest/targetTcpProxies).


## Example Usage

```hcl
resource "google_compute_target_tcp_proxy" "default" {
name = "test"
description = "test"
backend_service = "${google_compute_backend_service.default.self_link}"
}
resource "google_compute_backend_service" "default" {
name = "default-backend"
protocol = "TCP"
timeout_sec = 10
health_checks = ["${google_compute_health_check.default.self_link}"]
}
resource "google_compute_health_check" "default" {
name = "default"
timeout_sec = 1
check_interval_sec = 1
tcp_health_check {
port = "443"
}
}
```

## Argument Reference

The following arguments are supported:

* `name` - (Required) A unique name for the resource, required by GCE. Changing
this forces a new resource to be created.

* `backend_service` - (Required) The URL of a Backend Service resource to receive the matched traffic.

* `proxy_header` - (Optional) Type of proxy header to append before sending
data to the backend, either NONE or PROXY_V1 (default NONE).

- - -

* `description` - (Optional) A description of this resource. Changing this
forces a new resource to be created.

* `project` - (Optional) The project in which the resource belongs. If it
is not provided, the provider project is used.

## Attributes Reference

In addition to the arguments listed above, the following computed attributes are
exported:

* `proxy_id` - A unique ID assigned by GCE.

* `self_link` - The URI of the created resource.
4 changes: 4 additions & 0 deletions google.erb
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@
<a href="/docs/providers/google/r/compute_target_https_proxy.html">google_compute_target_https_proxy</a>
</li>

<li<%= sidebar_current("docs-google-compute-target-tcp-proxy") %>>
<a href="/docs/providers/google/r/compute_target_tcp_proxy.html">google_compute_target_tcp_proxy</a>
</li>

<li<%= sidebar_current("docs-google-compute-target-pool") %>>
<a href="/docs/providers/google/r/compute_target_pool.html">google_compute_target_pool</a>
</li>
Expand Down

0 comments on commit 46f5c11

Please sign in to comment.