# kestra_flow (Resource)

Manages a Kestra Flow.

# Example Usage

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

  • id (String) The ID of this resource.

# Read-Only

  • revision (Number) The flow revision.

# Import

Import is supported using the following syntax:

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