You are viewing the docs for v1.3, which is not the latest release.
View latest

Manage Kestra Flows with the Terraform Provider

For the complete documentation index, see llms.txt. For a full content snapshot, see llms-full.txt. Append .md to any kestra.io/docs/* URL for plain Markdown.

Terraform Resource: kestra_flow

Manages a Kestra Flow.

Example usage

hclresource "kestra_flow" "example" {
  namespace = "company.team"
  flow_id   = "my-flow"
  content   = <<EOT
id: my-flow
namespace: company.team
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:

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