The
template attribute accepts a YAML string defining the flow template structure. You can load it from a file using the file() function: template = file("template.yml"). Minor YAML formatting differences between what you provide and what the API returns may result in a no-op change being shown in plans.Example usage
Import
Flows can be imported using their name:Schema
Required
name(String) Name of the flow. Must be unique within the organization. Changing this will force recreation of the resource.
Optional
description(String) Description of the flow. Explains the purpose and context of this pipeline.template(String) YAML template defining the flow structure (trails, artifacts, attestations). Can be provided as an inline heredoc or loaded from a file usingfile(). If omitted, the flow is created without a template.