|
| 1 | +<!-- |
| 2 | + ---------------------------------------------------------------------------- |
| 3 | +
|
| 4 | + *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** |
| 5 | +
|
| 6 | + ---------------------------------------------------------------------------- |
| 7 | +
|
| 8 | + This file is automatically generated by Magic Modules and manual |
| 9 | + changes will be clobbered when the file is regenerated. |
| 10 | +
|
| 11 | + Please read more about how to change this file in |
| 12 | + .github/CONTRIBUTING.md. |
| 13 | +
|
| 14 | + ---------------------------------------------------------------------------- |
| 15 | +--> |
| 16 | + |
1 | 17 | ---
|
2 | 18 | layout: "google"
|
3 | 19 | page_title: "Google: google_compute_target_ssl_proxy"
|
4 | 20 | sidebar_current: "docs-google-compute-target-ssl-proxy"
|
5 | 21 | description: |-
|
6 |
| - Creates a Target SSL Proxy resource in GCE. |
| 22 | + Represents a TargetSslProxy resource, which is used by one or more |
| 23 | +global forwarding rule to route incoming SSL requests to a backend |
| 24 | +service. |
7 | 25 | ---
|
8 | 26 |
|
9 | 27 | # google\_compute\_target\_ssl\_proxy
|
10 | 28 |
|
11 |
| -Creates a target SSL proxy resource in GCE. For more information see |
12 |
| -[the official |
13 |
| -documentation](https://cloud.google.com/compute/docs/load-balancing/ssl-ssl/) and |
14 |
| -[API](https://cloud.google.com/compute/docs/reference/latest/targetSslProxies). |
| 29 | +Represents a TargetSslProxy resource, which is used by one or more |
| 30 | +global forwarding rule to route incoming SSL requests to a backend |
| 31 | +service. |
| 32 | + |
| 33 | +To get more information about TargetSslProxy, see: |
15 | 34 |
|
| 35 | +* [API documentation](https://cloud.google.com/compute/docs/reference/latest/targetSslProxies) |
| 36 | +* How-to Guides |
| 37 | + * [Setting Up SSL proxy for Google Cloud Load Balancing](https://cloud.google.com/compute/docs/load-balancing/tcp-ssl/) |
16 | 38 |
|
17 | 39 | ## Example Usage
|
18 | 40 |
|
@@ -49,38 +71,64 @@ resource "google_compute_health_check" "default" {
|
49 | 71 |
|
50 | 72 | The following arguments are supported:
|
51 | 73 |
|
52 |
| -* `name` - (Required) A unique name for the resource, required by GCE. Changing |
53 |
| - this forces a new resource to be created. |
| 74 | +* `name` - |
| 75 | + (Required) |
| 76 | + Name of the resource. Provided by the client when the resource is |
| 77 | +created. The name must be 1-63 characters long, and comply with |
| 78 | +RFC1035. Specifically, the name must be 1-63 characters long and match |
| 79 | +the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the |
| 80 | +first character must be a lowercase letter, and all following |
| 81 | +characters must be a dash, lowercase letter, or digit, except the last |
| 82 | +character, which cannot be a dash. |
| 83 | +* `backend_service` - |
| 84 | + (Required) |
| 85 | + A reference to BackendService resource |
| 86 | +* `ssl_certificates` - |
| 87 | + (Required) |
| 88 | + A list of SslCertificate resources that are used to authenticate |
| 89 | +connections between users and the load balancer. Currently, exactly |
| 90 | +one SSL certificate must be specified. |
54 | 91 |
|
55 |
| -* `backend_service` - (Required) The URL of a Backend Service resource to receive the matched traffic. |
56 |
| - |
57 |
| -* `ssl_certificates` - (Required) The URLs or names of the SSL Certificate resources that |
58 |
| - authenticate connections between users and load balancing. |
59 | 92 |
|
60 | 93 | - - -
|
61 | 94 |
|
62 |
| -* `proxy_header` - (Optional) Type of proxy header to append before sending |
63 |
| - data to the backend, either NONE or PROXY_V1 (default NONE). |
64 |
| - |
65 |
| -* `description` - (Optional) A description of this resource. Changing this |
66 |
| - forces a new resource to be created. |
| 95 | +* `description` - |
| 96 | + (Optional) |
| 97 | + An optional description of this resource. |
| 98 | +* `proxy_header` - |
| 99 | + (Optional) |
| 100 | + Specifies the type of proxy header to append before sending data to |
| 101 | +the backend, either NONE or PROXY_V1. The default is NONE. |
| 102 | +* `project` (Optional) The ID of the project in which the resource belongs. |
| 103 | + If it is not provided, the provider project is used. |
67 | 104 |
|
68 |
| -* `project` - (Optional) The ID of the project in which the resource belongs. If it |
69 |
| - is not provided, the provider project is used. |
70 | 105 |
|
71 | 106 | ## Attributes Reference
|
72 | 107 |
|
73 |
| -In addition to the arguments listed above, the following computed attributes are |
74 |
| -exported: |
75 |
| - |
76 |
| -* `proxy_id` - A unique ID assigned by GCE. |
| 108 | +In addition to the arguments listed above, the following computed attributes are exported: |
77 | 109 |
|
| 110 | +* `creation_timestamp` - |
| 111 | + Creation timestamp in RFC3339 text format. |
| 112 | +* `proxy_id` - |
| 113 | + The unique identifier for the resource. |
78 | 114 | * `self_link` - The URI of the created resource.
|
79 | 115 |
|
| 116 | + |
| 117 | +## Timeouts |
| 118 | + |
| 119 | +This resource provides the following |
| 120 | +[Timeouts](/docs/configuration/resources.html#timeouts) configuration options: |
| 121 | + |
| 122 | +- `create` - Default is 4 minutes. |
| 123 | +- `update` - Default is 4 minutes. |
| 124 | +- `delete` - Default is 4 minutes. |
| 125 | + |
80 | 126 | ## Import
|
81 | 127 |
|
82 |
| -SSL proxy can be imported using the `name`, e.g. |
| 128 | +TargetSslProxy can be imported using any of these accepted formats: |
83 | 129 |
|
84 | 130 | ```
|
85 |
| -$ terraform import google_compute_target_ssl_proxy.default test |
| 131 | +$ terraform import google_compute_target_ssl_proxy.default projects/{{project}}/global/targetSslProxies/{{name}} |
| 132 | +$ terraform import google_compute_target_ssl_proxy.default {{project}}/{{name}} |
| 133 | +$ terraform import google_compute_target_ssl_proxy.default {{name}} |
86 | 134 | ```
|
0 commit comments