sample
turbot/flowpipe-samples/snapshot-isolate-gcp-compute-instance

Pipeline: Snapshot and Isolate GCP Compute Instance

For a given GCP Compute instance, create a snapshot for all of its disks, detach the disks, and then create ingress and egress firewall rules blocking all traffic.

Run the pipeline

To run this pipeline from your terminal:

flowpipe pipeline run snapshot_isolate_gcp_compute_instance.pipeline.snapshot_isolate_gcp_compute_instance \
--arg 'jira_project_key=<string>' \
--arg 'jira_issue_type=<string>' \
--arg 'gcp_project_id=<string>' \
--arg 'gcp_instance_name=<string>'

Use this pipeline

To call this pipeline from your pipeline, use a step:

step "pipeline" "step_name" {
pipeline = snapshot_isolate_gcp_compute_instance.pipeline.snapshot_isolate_gcp_compute_instance
args = {
jira_project_key = <string>
jira_issue_type = <string>
gcp_project_id = <string>
gcp_instance_name = <string>
}
}

Params

NameTypeRequiredDescriptionDefault
gcp_conn
connection.gcp
YesName for GCP connections to use. If not provided, the default connection will be used.connection.gcp.default
jira_conn
connection.jira
YesName for Jira connections to use. If not provided, the default connection will be used.connection.jira.default
jira_project_key
string
YesThe Jira project key.-
jira_issue_type
string
YesThe Jira issue type.-
gcp_project_id
string
YesThe GCP project ID.-
gcp_zone
string
YesThe GCP zone.us-east1-b
gcp_instance_name
string
YesThe GCP instance name.-

Outputs

NameDescription
output