kestra_namespace_file
kestra_namespace_file (Resource)
Manages a Kestra Namespace File.
Example Usage
hcl
resource "kestra_namespace_file" "example" {
namespace = "io.kestra.mynamespace"
filename = "/path/my-file.sh"
content = <<EOT
#!/bin/bash
echo "Hello World"
EOT
}
resource "kestra_namespace_file" "withsource" {
namespace = "io.kestra.mynamespace"
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:
shell
terraform import kestra_namespace_file.example {{namespace}}/{{filename}}
Was this page helpful?