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.log.Log
    message: first {{task.id}}
    level: TRACE

pluginDefaults:
  - type: io.kestra.core.tasks.log.Log
    values:
      message: 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.

Read-Only

  • id (String) The ID of this resource.
  • revision (Number) The flow revision.
  • tenant_id (String) The tenant id.

Import

Import is supported using the following syntax:

shell
terraform import kestra_flow.example {{namespace}}/{{flow_id}}

Was this page helpful?