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

Manage Kestra Templates 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_template

Manages a Kestra Template.

Example usage

hclresource "kestra_template" "example" {
  namespace   = "company.team"
  template_id = "my-template"
  content     = <<EOT
tasks:
  - id: t2
    type: io.kestra.core.tasks.log.Log
    message: first {{task.id}}
    level: TRACE
EOT
}

Schema

Required

  • content (String) The template full content in yaml string.
  • namespace (String) The template namespace.
  • template_id (String) The template id.

Read-Only

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

Import

Import is supported using the following syntax:

shellterraform import kestra_template.example {{namespace}}/{{template_id}}