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

Manage Kestra Namespace Files 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_namespace_file

Manages a Kestra Namespace File.

Example usage

hclresource "kestra_namespace_file" "example" {
  namespace = "company.team"
  filename  = "/path/my-file.sh"
  content   = <<EOT
#!/bin/bash
echo "Hello World"
EOT
}

resource "kestra_namespace_file" "withsource" {
  namespace = "company.team"
  filename  = "/path/my-file.sh"
  content   = file("./kestra/file.sh")
}

Schema

Required

  • filename (String) The path to the namespace file that will be created. Missing parent directories will be created. If the file already exists, it will be overridden with the given content.
  • namespace (String) The namespace of the namespace file resource.

Optional

  • content (String) Content to store in the file, expected to be a UTF-8 encoded string.

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_namespace_file.example {{namespace}}/{{filename}}