You are viewing the docs for v1.3, which is not the latest release.
View latest

Manage User API Tokens with the Kestra Terraform Provider

For the complete documentation index, see llms.txt. For a full content snapshot, see llms-full.txt. Append .md to any kestra.io/docs/* URL for plain Markdown.

Terraform Resource: kestra_user_api_token

Manages a Kestra User Api Token.

Example Usage

hclresource "kestra_user_api_token" "example" {
  user_id = "4by6NvSLcPXFhCj8nwbZOM"

  name        = "test-token"
  description = "Test token"
  max_age     = "PT1H"
  extended    = false
}

Schema

Required

  • description (String) The API token description.
  • max_age (String) The time the token remains valid since creation (ISO 8601 duration format).
  • name (String) The API token display name.
  • user_id (String) The ID of the user owning the API Token.

Optional

  • extended (Boolean) Specify whether the expiry date is automatically moved forward by max age whenever the token is used. Defaults to false.

Read-Only

  • full_token (String, Sensitive) The full API token.
  • id (String) The ID of this resource.

Import

Import is supported using the following syntax:

shellterraform import kestra_user_api_token.example {{user_id}}