back to features

Terraform Provider

Define your entire AI agent infrastructure as code. ChatBotKit's Terraform provider lets you version-control bots, datasets, skillsets, and secrets with standard Terraform workflows.

ChatBotKit's Terraform provider brings infrastructure-as-code to your conversational AI stack. Define bots, datasets, skillsets, secrets, and integrations in declarative HCL, and manage everything through standard Terraform workflows. Every change is version-controlled, reviewable, and reproducible.

Whether you need consistent multi-environment deployments, pull-request-based reviews for agent changes, or instant rollback when something goes wrong, the Terraform provider treats your AI agent fleet as first-class infrastructure.

Key Features

  • Declarative Resource Management: Define bots, datasets, skillsets, secrets, and integrations as HCL resources.
  • Plan and Apply: Preview every change before it goes live with terraform plan.
  • Multi-Environment Support: Use workspaces and variable overrides to manage dev, staging, and production consistently.
  • Import Existing Resources: Bring manually created bots and datasets under Terraform management.
  • Drift Detection: Detect and correct manual changes that bypass your Terraform workflow.
  • Full Lifecycle Control: Create, update, destroy, and recreate your entire agent stack with a single command.

Getting Started

Add the provider to your configuration and run terraform init:

Then preview and apply your changes:

Browse the Terraform Provider documentation for the full resource reference and explore Tutorials for step-by-step guides.