The Kosli provider allows you to manage Kosli resources as Infrastructure-as-Code using Terraform. Use it to define and manage environments, policies, actions, custom attestation types, and integrate Kosli into your compliance workflows.Documentation Index
Fetch the complete documentation index at: https://docs.kosli.com/llms.txt
Use this file to discover all available pages before exploring further.
The provider is officially registered at the Terraform Registry.
Requirements
- Terraform >= 1.10
- A Kosli account with API credentials
Example usage
Authentication
The provider requires a Kosli API token and organization name for authentication. These can be configured in two ways (in order of precedence):- Provider configuration - Set directly in your Terraform configuration
- Environment variables - Use
KOSLI_API_TOKENandKOSLI_ORG
Creating an API token
To create an API token:- Log in to Kosli
- Navigate to Settings → API Tokens
- Click Create Token
- Copy the token and store it securely
Regional endpoints
Kosli operates in multiple regions. Configure theapi_url to match your organization’s region:
- EU (Default):
https://app.kosli.com - US:
https://app.us.kosli.com
Schema
Optional
api_token(String, Sensitive) Kosli API token for authentication. Can also be set via KOSLI_API_TOKEN environment variable.api_url(String) Kosli API endpoint URL. Defaults to https://app.kosli.com (EU region). Use https://app.us.kosli.com for US region. Can also be set via KOSLI_API_URL environment variable.org(String) Kosli organization name. Can also be set via KOSLI_ORG environment variable.timeout(Number) HTTP client timeout in seconds. Defaults to 30 seconds.