library
turbot/gcp
Get Involved
Version
Pipeline: Update Labels on Pub/Sub Subscription
This pipeline updates labels on a Google Cloud Pub/Sub subscription.
Run the pipeline
To run this pipeline from your terminal:
flowpipe pipeline run gcp.pipeline.add_labels_to_pubsub_subscription \ --arg 'project_id=<string>' \ --arg 'subscription_name=<string>' \ --arg 'labels=<map(string)>'
Use this pipeline
To call this pipeline from your pipeline, use a step:
step "pipeline" "step_name" { pipeline = gcp.pipeline.add_labels_to_pubsub_subscription args = { project_id = <string> subscription_name = <string> labels = <map(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. | - |
subscription_name | string | Yes | The name of the Pub/Sub subscription. | - |
labels | map(string) | Yes | The GCP labels to add or update. | - |
Outputs
Name | Description |
---|---|
subscription | Information about the Pub/Sub subscription. |