library
turbot/gcp
Get Involved
Version
Pipeline: Clone Cloud SQL Instance
This pipeline creates a clone of a Cloud SQL instance. The clone is an independent copy of the source instance with the same data and settings. Source and destination instances must be in the same project. An instance can be cloned from its current state, or from an earlier point in time.
Run the pipeline
To run this pipeline from your terminal:
flowpipe pipeline run gcp.pipeline.clone_sql_instance \ --arg 'project_id=<string>' \ --arg 'source_instance_name=<string>' \ --arg 'clone_instance_name=<string>'
Use this pipeline
To call this pipeline from your pipeline, use a step:
step "pipeline" "step_name" { pipeline = gcp.pipeline.clone_sql_instance args = { project_id = <string> source_instance_name = <string> clone_instance_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_instance_name | string | Yes | The name of the source Cloud SQL instance to clone. | - |
clone_instance_name | string | Yes | The name of the cloned Cloud SQL instance. | - |
Outputs
Name | Description |
---|---|
clone_sql_instance | Information about the cloned Cloud SQL instance. |