standard
turbot/gcp_labels

Pipeline: 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 'conn=<connection.gcp>' \
--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>
conn = <connection.gcp>
type = <string>
zone = <string>
remove = <list(string)>
upsert = <map(string)>
}
}

Params

NameTypeRequiredDescriptionDefault
id
string
YesThe ID 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.-
type
string
YesThe type of the resources to correct.-
zone
string
YesThe zone of the resource.-
remove
list(string)
YesThe labels to remove from the resource.-
upsert
map(string)
YesThe labels to add or update on the resource.-

Outputs

This pipeline has no outputs.