# kestra_role (Resource)

Manages a Kestra Role.

# Example Usage

resource "kestra_role" "example" {
  namespace   = "io.kestra.mynamespace"
  name        = "Friendly name"
  description = "Friendly description"

  permissions {
    type        = "FLOW"
    permissions = ["READ", "UPDATE"]
  }

  permissions {
    type        = "TEMPLATE"
    permissions = ["READ", "UPDATE"]
  }
}

# Schema

# Required

  • name (String) The role name.

# Optional

  • description (String) The role description.
  • id (String) The ID of this resource.
  • namespace (String) The linked namespace.
  • permissions (Block Set) The role permissions. (see below for nested schema)

# Nested Schema for permissions

Required:

  • permissions (List of String) The permissions for this type.
  • type (String) The type of permission.

# Import

Import is supported using the following syntax:

terraform import kestra_role.example {{role_id}}