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

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_credstringYesName for GCP credentials to use. If not provided, the default credentials will be used.default
jira_credstringYesName for Jira credentials to use. If not provided, the default credentials will be used.default
jira_project_keystringYesThe Jira project key.-
jira_issue_typestringYesThe Jira issue type.-
gcp_project_idstringYesThe GCP project ID.-
gcp_zonestringYesThe GCP zone.us-east1-b
gcp_instance_namestringYesThe GCP instance name.-

Outputs

NameDescription
output