Expand description
Represents a RegionTargetTcpProxy resource, which is used by one or more forwarding rules to route incoming TCP requests to a regional TCP proxy load balancer.
To get more information about RegionTargetTcpProxy, see:
- API documentation
- How-to Guides
§Example Usage
§Region Target Tcp Proxy Basic
resources:
default:
type: gcp:compute:RegionTargetTcpProxy
properties:
name: test-proxy
region: europe-west4
backendService: ${defaultRegionBackendService.id}
defaultRegionBackendService:
type: gcp:compute:RegionBackendService
name: default
properties:
name: backend-service
protocol: TCP
timeoutSec: 10
region: europe-west4
healthChecks: ${defaultRegionHealthCheck.id}
loadBalancingScheme: INTERNAL_MANAGED
defaultRegionHealthCheck:
type: gcp:compute:RegionHealthCheck
name: default
properties:
name: health-check
region: europe-west4
timeoutSec: 1
checkIntervalSec: 1
tcpHealthCheck:
port: '80'
§Import
RegionTargetTcpProxy can be imported using any of these accepted formats:
-
projects/{{project}}/regions/{{region}}/targetTcpProxies/{{name}}
-
{{project}}/{{region}}/{{name}}
-
{{region}}/{{name}}
-
{{name}}
When using the pulumi import
command, RegionTargetTcpProxy can be imported using one of the formats above. For example:
$ pulumi import gcp:compute/regionTargetTcpProxy:RegionTargetTcpProxy default projects/{{project}}/regions/{{region}}/targetTcpProxies/{{name}}
$ pulumi import gcp:compute/regionTargetTcpProxy:RegionTargetTcpProxy default {{project}}/{{region}}/{{name}}
$ pulumi import gcp:compute/regionTargetTcpProxy:RegionTargetTcpProxy default {{region}}/{{name}}
$ pulumi import gcp:compute/regionTargetTcpProxy:RegionTargetTcpProxy 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