LINKORA
OverviewQuickstart

Terraform Provider

Manage Linkora resources as infrastructure-as-code with Terraform

The Linkora Terraform provider lets you manage Linkora as infrastructure-as-code. Define platform configuration in code, review changes before applying them, detect drift, and import resources that already exist.

Installation

Add the provider to your Terraform configuration and run terraform init:

terraform {
  required_providers {
    linkora = {
      source  = "LinkoraTeam/linkora"
      version = "~> 0.2"
    }
  }
}

provider "linkora" {
  api_key = var.linkora_management_key
}

Authentication

Authenticate with an Linkora Management API key, which starts with sk-or-mgmt-.... Management keys administer resources and cannot spend inference credits. Pass the key to the provider through api_key, for example with a Terraform variable or another secret-management workflow.

Example

This example creates a workspace, an API key assigned to that workspace, and a guardrail:

resource "linkora_workspace" "production" {
  name = "Production"
  slug = "production"
}

resource "linkora_api_key" "backend" {
  name         = "backend-service"
  limit        = 100
  limit_reset  = "monthly"
  workspace_id = linkora_workspace.production.id
}

resource "linkora_guardrail" "cost_cap" {
  name           = "cost-cap"
  limit_usd      = 50
  reset_interval = "monthly"
  enforce_zdr    = true
}

What it manages

The provider supports the lifecycle of Linkora platform resources, including:

  • API keys and workspace configuration
  • Guardrails and spending limits
  • BYOK provider credentials
  • Observability destinations
  • Private endpoints
  • SCIM group mappings

Terraform tracks these resources in state so plans can show configuration drift before you apply a change. Existing resources can be imported into Terraform-managed state.

Resources and data sources

The provider currently includes seven managed resources:

  • linkora_api_key
  • linkora_byok_key
  • linkora_guardrail
  • linkora_observability_destination
  • linkora_private_endpoint
  • linkora_scim_group_mapping
  • linkora_workspace

It also includes data sources for looking up resources and platform information, including API keys, BYOK keys, credits, guardrails, models, observability destinations, presets, private endpoints, providers, SCIM mappings, and workspaces.

For the complete resource and data-source reference, see the Terraform Registry documentation. The provider source is available on GitHub.