standard
turbot/gcp_labels

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

NameTypeRequiredDescriptionDefault
title
string
YesThe title of the resource.-
id
string
YesThe ID of the resource.-
zone
string
YesThe zone of the resource.-
project
string
YesThe project of the resource.-
conn
connection.gcp
YesName of the GCP connection to be used for any authenticated actions.-
remove
list(string)
YesThe labels to remove from the resource.-
upsert
map(string)
YesThe labels to add or update on the resource.-
resource_type
string
YesThe type of the resources to correct.-
notifier
notifier
YesThe name of the notifier to use for sending notification messages.notifier.default
notification_level
string
info, verbose, error
YesThe verbosity level of notification messages to send.info
approvers
list(notifier)
YesList of notifiers to be used for obtaining action/approval decisions.notifier.default
default_action
string
notify, apply, skip
YesThe default action to use for the detected item, used if no input is provided.notify

Outputs

This pipeline has no outputs.