standard
turbot/gcp_labels
Get Involved
Version
Pipeline: Correct one resource with incorrect labels
Corrects a single resource with incorrect labels.
Run the pipeline
To run this pipeline from your terminal:
flowpipe pipeline run gcp_labels.pipeline.correct_one_resource_with_incorrect_labels \ --arg 'title=<string>' \ --arg 'id=<string>' \ --arg 'zone=<string>' \ --arg 'project=<string>' \ --arg 'conn=<connection.gcp>' \ --arg 'remove=<list(string)>' \ --arg '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_one_resource_with_incorrect_labels args = { title = <string> id = <string> zone = <string> project = <string> conn = <connection.gcp> remove = <list(string)> upsert = <map(string)> resource_type = <string> }}
Params
Name | Type | Required | Description | Default |
---|---|---|---|---|
title | string | Yes | The title of the resource. | - |
id | string | Yes | The ID of the resource. | - |
zone | string | Yes | The zone of the resource. | - |
project | string | Yes | The project of the resource. | - |
conn | connection.gcp | Yes | Name of the GCP connection to be used for any authenticated actions. | - |
remove | list(string) | Yes | The labels to remove from the resource. | - |
upsert | map(string) | Yes | The labels to add or update on the resource. | - |
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.