library
turbot/gcp
Get Involved
Version
Pipeline: Create Compute Engine Snapshot
This pipeline creates snapshot of persistent disk. Snapshots are useful for backing up persistent disk data and for creating custom images.
Run the pipeline
To run this pipeline from your terminal:
flowpipe pipeline run gcp.pipeline.create_compute_snapshot \ --arg 'project_id=<string>' \ --arg 'source_disk_zone=<string>' \ --arg 'source_disk_name=<string>' \ --arg 'snapshot_name=<string>'
Use this pipeline
To call this pipeline from your pipeline, use a step:
step "pipeline" "step_name" { pipeline = gcp.pipeline.create_compute_snapshot args = { project_id = <string> source_disk_zone = <string> source_disk_name = <string> snapshot_name = <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. | - |
source_disk_zone | string | Yes | The GCP zone. | - |
source_disk_name | string | Yes | The GCP instance name. | - |
snapshot_name | string | Yes | The name of the snapshot to be created. | - |
Outputs
Name | Description |
---|---|
snapshot | Information about the GCP Compute Engine snapshot. |