pulumi_wasm_providers_gcp_mini::compute

Module target_tcp_proxy

source
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§

Functions§

  • Registers a new resource with the given unique name and arguments