# kestra_namespace (Resource)

Manages a Kestra Namespace.

# Example Usage

resource "kestra_namespace" "example" {
  namespace_id  = "io.kestra.mynamespace"
  description   = "Friendly description"
  variables     = <<EOT
k1: 1
k2:
    v1: 1
EOT
  task_defaults = <<EOT
- type: io.kestra.core.tasks.debugs.Echo
  values:
    format: 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.
  • id (String) The ID of this resource.
  • task_defaults (String) The namespace task defaults in yaml string.
  • variables (String) The namespace variables in yaml string.

# Import

Import is supported using the following syntax:

terraform import kestra_namespace.example {{namespace}}