Kestra Terraform Provider – Manage Flows
Terraform Resource: kestra_flow
Manages a Kestra Flow.
Example usage
resource "kestra_flow" "example" { namespace = "company.team" flow_id = "my-flow" content = <<EOTid: my-flownamespace: company.teaminputs: - 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:
terraform import kestra_flow.example {{namespace}}/{{flow_id}}Was this page helpful?