kestra_namespace (Resource)

Manages a Kestra Namespace.

Example Usage

hcl
resource "kestra_namespace" "example" {
  namespace_id  = "io.kestra.mynamespace"
  description   = "Friendly description"
  variables     = <<EOT
k1: 1
k2:
    v1: 1
EOT
  plugin_defaults = <<EOT
- type: io.kestra.core.tasks.log.Log
  values:
    message: first {{flow.id}}
- type: io.kestra.core.tasks.debugs.Return
  values:
    format: first {{flow.id}}
EOT
}

Schema

Required

  • namespace_id (String) The namespace.

Optional

  • description (String) The namespace friendly description.
  • plugin_defaults (String) The namespace plugin defaults in yaml string.
  • variables (String) The namespace variables in yaml 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.example {{namespace}}

Was this page helpful?