Infrastructure as Code

AISIA Terraform provider and deployment modules

In short

The aisia-foundation/aisia Terraform provider manages the configuration of an AISIA instance as code: organisations, users, API keys, per-organisation LLM provider keys, guardrails, webhooks and local models. It is published on the public Terraform registry, alongside seven deployment modules, at version 6.14.46 as of 2026-11-29.

The provider drives the AISIA API; the modules describe how to deploy the platform on existing infrastructure. Both are separate from the multicloud inference pack, which stays in simulation.

Talk about a dedicated instance

Declaring the provider

The source is aisia-foundation/aisia. The token is read from the AISIA_TOKEN environment variable: an administration key for the instance, to be handled as a secret. AISIA_ENDPOINT targets an instance other than https://api.aisia.fr, for example a BaaS or PaaS instance.

terraform {
  required_providers {
    aisia = {
      source  = "aisia-foundation/aisia"
      version = "~> 6.14"
    }
  }
}

provider "aisia" {
  # token read from AISIA_TOKEN; optional endpoint (AISIA_ENDPOINT)
}

The main resources

Documented provider resources (generated documentation in the repository, 2026-11-29)
ResourcePurpose
aisia_organizationOrganisation (tenant), with its plan and quotas
aisia_userUser and role in an organisation; a generated password is exposed once when none is given
aisia_api_keyProgrammatic access key scoped to an organisation, with scopes, allowed models and budget; value exposed only at creation
aisia_provider_keyLLM provider key scoped to an organisation, validated by a real call to the provider before storage, never read back in clear
aisia_guardrailGuardrail rule: filtered pattern and action (block or redact)
aisia_webhookOutgoing webhook signed with HMAC, on the subscribed events
aisia_local_modelLocal model declared in the database (runtime, endpoint, priority)

The provider also exposes many read-only data sources, one per API catalogue; the current list is on the registry page.

Example: an organisation, its provider key and an API key

This example follows the provider documentation: it creates an organisation, stores its own OpenAI key and issues an API key for a continuous integration pipeline.

resource "aisia_organization" "acme" {
  name          = "ACME Corp"
  slug          = "acme"
  contract_type = "saas"
}

resource "aisia_provider_key" "acme_openai" {
  org_id      = aisia_organization.acme.id
  provider_id = "openai"
  key_value   = var.openai_key   # variable marked sensitive
}

resource "aisia_api_key" "acme_ci" {
  org_id         = aisia_organization.acme.id
  name           = "ci-pipeline"
  scopes         = ["invoke", "compare"]
  rate_limit_rpm = 120
}

Declare variables that carry secrets with sensitive = true, and keep the Terraform state in an encrypted backend: it holds the values exposed at creation.

The deployment modules

Seven modules are published under the aisia-foundation namespace. They describe how to deploy the platform on an existing substrate; no production deployment of AISIA on these clouds is claimed.

Modules published on the public Terraform registry (version 6.14.46, checked on 2026-11-29)
ModuleSubstrate
aisia-foundation/cluster/aisiaExisting Kubernetes cluster
aisia-foundation/swarm/aisiaExisting Docker Swarm cluster
aisia-foundation/aisia/awsAWS: Swarm or Kubernetes (EKS)
aisia-foundation/aisia/azureAzure: AKS or Swarm
aisia-foundation/aisia/googleGoogle Cloud: GKE or Swarm
aisia-foundation/aisia/ovhOVHcloud: Managed Kubernetes or Swarm
aisia-foundation/aisia/scalewayScaleway: Kapsule or Swarm

What Terraform does not do

  • The platform multicloud inference pack is separate from these modules: its plan is prepared and simulated (dry-run), applying it is refused by the API and has never been run in production.
  • AISIA runs no automatic terraform apply: applying stays a human decision in your pipeline.
  • A declared resource does not prove that a model or a provider answers: check the real state through the API and the status page.

Frequently asked questions

Where is the provider?

On the public Terraform registry, under aisia-foundation/aisia. The check made on 2026-11-29 shows version 6.14.46 published that day, with the source code at github.com/aisia-foundation/terraform-provider-aisia.

Which token should I use?

An administration key for the instance, passed through the AISIA_TOKEN environment variable. Never write it into a versioned .tf file.

Does the provider work with a dedicated instance?

Yes: AISIA_ENDPOINT, or the provider endpoint argument, targets the API URL of your BaaS or PaaS instance.

Do the modules deploy AISIA on five clouds?

The modules describe that deployment on an existing substrate. AISIA claims no production deployment on these clouds, and the multicloud inference pack stays in simulation.

Sources

Public facts checked on the dates shown. A vendor page can change: check it before you decide.

Related pages

Talk about a dedicated instance