library
turbot/gcp
Get Involved
Version
Pipeline: Set Machine Type
This pipeline is used to set the machine type of a Compute Engine virtual machine. Changing the machine type stops the instance and starts it again with the new machine type.
Run the pipeline
To run this pipeline from your terminal:
flowpipe pipeline run gcp.pipeline.set_compute_instance_machine_type \ --arg 'project_id=<string>' \ --arg 'zone=<string>' \ --arg 'instance_name=<string>' \ --arg 'machine_type=<string>'
Use this pipeline
To call this pipeline from your pipeline, use a step:
step "pipeline" "step_name" { pipeline = gcp.pipeline.set_compute_instance_machine_type args = { project_id = <string> zone = <string> instance_name = <string> machine_type = <string> }}
Params
Name | Type | Required | Description | Default |
---|---|---|---|---|
conn | connection.gcp | Yes | Name of GCP connection to use. If not provided, the default GCP connection will be used. | connection.gcp.default |
project_id | string | Yes | The GCP project ID. | - |
zone | string | Yes | The GCP zone. | - |
instance_name | string | Yes | The GCP compute instance name. | - |
machine_type | string | Yes | The new machine type to set for the compute instance. | - |
Outputs
This pipeline has no outputs.