samples
turbot/flowpipe-samples/snapshot-isolate-gcp-compute-instance
Get Involved
Version
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
Name | Type | Required | Description | Default |
---|---|---|---|---|
gcp_cred | string | Yes | Name for GCP credentials to use. If not provided, the default credentials will be used. | default |
jira_cred | string | Yes | Name for Jira credentials to use. If not provided, the default credentials will be used. | default |
jira_project_key | string | Yes | The Jira project key. | - |
jira_issue_type | string | Yes | The Jira issue type. | - |
gcp_project_id | string | Yes | The GCP project ID. | - |
gcp_zone | string | Yes | The GCP zone. | us-east1-b |
gcp_instance_name | string | Yes | The GCP instance name. | - |
Outputs
Name | Description |
---|---|
output |