
Google Cloud Start
CertifiedStart a Compute Engine instance
Google Cloud Start
Start a Compute Engine instance
Starts an existing, stopped Compute Engine instance and optionally waits for it to reach the RUNNING state.
type: io.kestra.plugin.gcp.compute.StartExamples
Start an existing instance and log its IP.
id: compute_engine_start
namespace: company.team
tasks:
- id: start_instance
type: io.kestra.plugin.gcp.compute.Start
serviceAccount: "{{ secret('GCP_SERVICE_ACCOUNT_KEY') }}"
projectId: "{{ secret('GCP_PROJECT_ID') }}"
zone: "europe-west1-b"
instanceName: "my-batch-vm"
waitUntilRunning: "true"
- id: log_status
type: io.kestra.plugin.core.log.Log
message: "Instance {{ outputs.start_instance.instanceName }} is {{ outputs.start_instance.status }} at {{ outputs.start_instance.externalIp }}"
Properties
instanceName *Requiredstring
The name of the Compute Engine instance
zone *Requiredstring
The zone where the instance is located
e.g. us-central1-a.
impersonatedServiceAccount string
The GCP service account to impersonate
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
projectId string
The GCP project ID
scopes array
["https://www.googleapis.com/auth/cloud-platform"]The GCP scopes to be used
serviceAccount string
The GCP service account
timeout string
PT10MThe maximum duration to wait for the operation to complete
Default: PT10M. Hitting this timeout fails the task but does not cancel the in-flight GCP operation.
waitUntilRunning booleanstring
trueWhether to wait for the instance to reach the RUNNING state before completing the task
Default: true.
Outputs
externalIp string
The instance's external (public) IP address, if any
Typically null once an instance is stopped, since ephemeral external IPs are released on stop.
instanceId string
The unique GCP instance ID
instanceName string
The name of the instance
internalIp string
The instance's internal (private) IP address
status string
The instance status after the operation
e.g. PROVISIONING, STAGING, RUNNING, STOPPING, TERMINATED.