Expand description
Represents a TargetSslProxy resource, which is used by one or more global forwarding rule to route incoming SSL requests to a backend service.
To get more information about TargetSslProxy, see:
§Example Usage
§Target Ssl Proxy Basic
resources:
default:
type: gcp:compute:TargetSSLProxy
properties:
name: test-proxy
backendService: ${defaultBackendService.id}
sslCertificates:
- ${defaultSSLCertificate.id}
defaultSSLCertificate:
type: gcp:compute:SSLCertificate
name: default
properties:
name: default-cert
privateKey:
fn::invoke:
function: std:file
arguments:
input: path/to/private.key
return: result
certificate:
fn::invoke:
function: std:file
arguments:
input: path/to/certificate.crt
return: result
defaultBackendService:
type: gcp:compute:BackendService
name: default
properties:
name: backend-service
protocol: SSL
healthChecks: ${defaultHealthCheck.id}
defaultHealthCheck:
type: gcp:compute:HealthCheck
name: default
properties:
name: health-check
checkIntervalSec: 1
timeoutSec: 1
tcpHealthCheck:
port: '443'
§Import
TargetSslProxy can be imported using any of these accepted formats:
-
projects/{{project}}/global/targetSslProxies/{{name}}
-
{{project}}/{{name}}
-
{{name}}
When using the pulumi import
command, TargetSslProxy can be imported using one of the formats above. For example:
$ pulumi import gcp:compute/targetSSLProxy:TargetSSLProxy default projects/{{project}}/global/targetSslProxies/{{name}}
$ pulumi import gcp:compute/targetSSLProxy:TargetSSLProxy default {{project}}/{{name}}
$ pulumi import gcp:compute/targetSSLProxy:TargetSSLProxy 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