library
turbot/gcp_labels
- Add and remove resource labels
- Correct one resource with incorrect labels
- Correct resources with incorrect labels
- Detect & correct Compute disks with incorrect labels
- Detect & correct Compute images with incorrect labels
- Detect & correct Compute instances with incorrect labels
- Detect & correct Compute snapshots with incorrect labels
- Detect & correct Dataproc clusters with incorrect labels
- Detect & correct Pub/Sub subscriptions with incorrect labels
- Detect & correct Pub/Sub topics with incorrect labels
- Detect & correct SQL database instances with incorrect labels
- Detect & correct Storage buckets with incorrect labels
Get Involved
Version
Add and remove resource labels
Add and remove labels from a resource.
Run the pipeline
To run this pipeline from your terminal:
flowpipe pipeline run gcp_labels.pipeline.add_and_remove_resource_labels \ --arg 'id=<string>' \ --arg 'project=<string>' \ --arg 'cred=<string>' \ --arg 'type=<string>' \ --arg 'zone=<string>' \ --arg 'remove=<list(string)>' \ --arg 'upsert=<map(string)>'
Use this pipeline
To call this pipeline from your pipeline, use a step:
step "pipeline" "step_name" { pipeline = gcp_labels.pipeline.add_and_remove_resource_labels args = { id = <string> project = <string> cred = <string> type = <string> zone = <string> remove = <list(string)> upsert = <map(string)> }}
Params
Name | Type | Required | Description | Default |
---|---|---|---|---|
id | string | Yes | The ID of the resource. | - |
project | string | Yes | The project of the resource. | - |
cred | string | Yes | The credential to use when attempting to correct the resource. | - |
type | string | Yes | The type of the resources to correct. | - |
zone | string | Yes | The zone of the resource. | - |
remove | list(string) | Yes | The labels to remove from the resource. | - |
upsert | map(string) | Yes | The labels to add or update on the resource. | - |
Outputs
This pipeline has no outputs.