library
turbot/gcp_labels

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

NameTypeRequiredDescriptionDefault
idstringYesThe ID of the resource.-
projectstringYesThe project of the resource.-
credstringYesThe credential to use when attempting to correct the resource.-
typestringYesThe type of the resources to correct.-
zonestringYesThe zone of the resource.-
removelist(string)YesThe labels to remove from the resource.-
upsertmap(string)YesThe labels to add or update on the resource.-

Outputs

This pipeline has no outputs.