standard
turbot/gcp_labels

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>
}
}

Params

NameTypeRequiredDescriptionDefault
items
list(object({
      title   = string
      id      = string
      project = string
      zone    = string
      conn    = string
      remove  = list(string)
      upsert  = map(string)
    }))
YesThe resources with incorrect labels.-
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.