Expand description
Represents a TargetTcpProxy resource, which is used by one or more global forwarding rule to route incoming TCP requests to a Backend service.
To get more information about TargetTcpProxy, see:
§Example Usage
§Target Tcp Proxy Basic
resources:
default:
type: gcp:compute:TargetTCPProxy
properties:
name: test-proxy
backendService: ${defaultBackendService.id}
defaultBackendService:
type: gcp:compute:BackendService
name: default
properties:
name: backend-service
protocol: TCP
timeoutSec: 10
healthChecks: ${defaultHealthCheck.id}
defaultHealthCheck:
type: gcp:compute:HealthCheck
name: default
properties:
name: health-check
timeoutSec: 1
checkIntervalSec: 1
tcpHealthCheck:
port: '443'
§Import
TargetTcpProxy can be imported using any of these accepted formats:
-
projects/{{project}}/global/targetTcpProxies/{{name}}
-
{{project}}/{{name}}
-
{{name}}
When using the pulumi import
command, TargetTcpProxy can be imported using one of the formats above. For example:
$ pulumi import gcp:compute/targetTCPProxy:TargetTCPProxy default projects/{{project}}/global/targetTcpProxies/{{name}}
$ pulumi import gcp:compute/targetTCPProxy:TargetTCPProxy default {{project}}/{{name}}
$ pulumi import gcp:compute/targetTCPProxy:TargetTCPProxy default {{name}}
Structs§
- Use builder syntax to set the inputs and finish with
build_struct()
.
Functions§
- Registers a new resource with the given unique name and arguments