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

Configure 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.

Kestra 1.0.x compatibility

Additionally, if you want to terraform Kestra 1.0.x you need to use Kestra Terraform provider 1.0.x

Breaking changes from 1.0.x

Various breaking changes were made around from 0.24.x to 1.0.x, especially around IAM.

Example usage

hclprovider "kestra" {
  # mandatory, the Kestra webserver/standalone URL
  url = "http://localhost:8080"

  # optional basic auth username
  username = "john"

  # optional basic auth password
  password = "my-password"

  # optional jwt token (EE)
  jwt = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6Iktlc3RyYS5pbyIsImlhdCI6MTUxNjIzOTAyMn0.hm2VKztDJP7CUsI69Th6Y5NLEQrXx7OErLXay55GD5U"

  # optional tenant id (EE)
  tenant_id = "the-tenant-id"

  # optional extra headers
  extra_headers = {
    x-pipeline    = "*****"
    authorization = "Bearer *****"
  }
}

Schema

Optional

  • api_token (String, Sensitive) The API token (EE)
  • extra_headers (Map of String) Extra headers to add to every request
  • jwt (String, Sensitive) The JWT token (EE)
  • keep_original_source (Boolean) Keep original source code, keeping comment and indentation. Setting to false is now deprecated and will be removed in the future.
  • password (String, Sensitive) The basic-auth password
  • tenant_id (String) The tenant id (EE)
  • timeout (Number) The timeout (in seconds) for http requests
  • url (String) The endpoint url
  • username (String) The basic-auth username