kestra_flow (Resource)
Manages a Kestra Flow.
Example Usage
hcl
resource "kestra_flow" "example" {
namespace = "io.kestra.mynamespace"
flow_id = "my-flow"
content = <<EOT
inputs:
- name: my-value
type: STRING
variables:
first: "1"
tasks:
- id: t2
type: io.kestra.core.tasks.debugs.Echo
format: first {{task.id}}
level: TRACE
taskDefaults:
- type: io.kestra.core.tasks.debugs.Echo
values:
format: third {{flow.id}}
EOT
}
Schema
Required
content
(String) The flow full content in yaml string.flow_id
(String) The flow id.namespace
(String) The flow namespace.
Optional
keep_original_source
(Boolean) Use the content as source code, keeping comment and indentation. Defaults tofalse
.
Read-Only
id
(String) The ID of this resource.revision
(Number) The flow revision.
Import
Import is supported using the following syntax:
shell
terraform import kestra_flow.example {{namespace}}/{{flow_id}}