kestra_role (Resource)
Manages a Kestra Role.
This resource is only available on the Enterprise Edition
Example Usage
hcl
resource "kestra_role" "example" {
namespace = "company.team"
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.is_default
(Boolean) The role is the default one at user creation. Only one role can be default. Latest create/update to true will be keep as default. Defaults tofalse
.namespace
(String) The linked namespace.permissions
(Block Set) The role permissions. (see below for nested schema)
Read-Only
id
(String) The ID of this resource.tenant_id
(String) The tenant id.
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:
shell
terraform import kestra_role.example {{role_id}}
Was this page helpful?