standard
turbot/gcp_labels
Get Involved
Version
Pipeline: Correct resources with incorrect labels
Corrects resources with incorrect labels.
Run the pipeline
To run this pipeline from your terminal:
flowpipe pipeline run gcp_labels.pipeline.correct_resources_with_incorrect_labels \ --arg 'items=<list(object({ title = string id = string project = string zone = string conn = string remove = list(string) upsert = map(string) }))>' \ --arg 'resource_type=<string>'
Use this pipeline
To call this pipeline from your pipeline, use a step:
step "pipeline" "step_name" { pipeline = gcp_labels.pipeline.correct_resources_with_incorrect_labels args = { items = <list(object({ title = string id = string project = string zone = string conn = string remove = list(string) upsert = map(string) }))> resource_type = <string> }}
Triggers
- Detect & correct Storage buckets with incorrect labels
- Detect & correct SQL database instances with incorrect labels
- Detect & correct Pub/Sub topics with incorrect labels
- Detect & correct Pub/Sub subscriptions with incorrect labels
- Detect & correct Dataproc clusters with incorrect labels
- Detect & correct Compute snapshots with incorrect labels
- Detect & correct Compute instances with incorrect labels
- Detect & correct Compute images with incorrect labels
- Detect & correct Compute disks with incorrect labels
Params
Name | Type | Required | Description | Default |
---|---|---|---|---|
items | list(object({ title = string id = string project = string zone = string conn = string remove = list(string) upsert = map(string) })) | Yes | The resources with incorrect labels. | - |
resource_type | string | Yes | The type of the resources to correct. | - |
notifier | notifier | Yes | The name of the notifier to use for sending notification messages. | notifier.default |
notification_level | string info , verbose , error | Yes | The verbosity level of notification messages to send. | info |
approvers | list(notifier) | Yes | List of notifiers to be used for obtaining action/approval decisions. | notifier.default |
default_action | string notify , apply , skip | Yes | The default action to use for the detected item, used if no input is provided. | notify |
Outputs
This pipeline has no outputs.