For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
13.5kProductPricingSign inStart free trialBook a demo
DocsAPIsSDKsEnterprise EdgeGuidesAcademyRelease notes
DocsAPIsSDKsEnterprise EdgeGuidesAcademyRelease notes
    • Home
  • Get started
    • Quickstart
    • Introduction to feature flags
    • Unleash architecture overview
  • Core concepts
    • Overview
    • Import and export
      • Unleash hosting options
        • Integrations overview
        • Datadog
        • Slack
        • Microsoft Teams
        • Terraform
        • Webhook
      • Developer Toolbar

Unleash reduces the risk of releasing new features, drives innovation by streamlining the software release process, and increases revenue by optimizing end-user experience. While we serve the needs of the world's largest, most security-conscious organizations, we are also rated the “Easiest Feature Management system to use” by G2.

GitHubGitHubLinkedInLinkedInX (Twitter)X (Twitter)SlackSlackStack OverflowStack OverflowYouTubeYouTube

Server SDKs

  • Node.js
  • Java
  • Go
  • Rust
  • Ruby
  • Python
  • .NET
  • PHP
  • All SDKs

Frontend SDKs

  • JavaScript
  • React
  • Next.js
  • Vue
  • iOS
  • Android
  • Flutter

Feature Flag use cases

  • Secure, scalable feature flags
  • Rollbacks
  • FedRAMP, SOC2, ISO2700 compliance
  • Progressive or gradual rollouts
  • Trunk-based development
  • Software kill switches
  • A/B testing
  • Feature management
  • Canary releases

Product

  • Quickstart
  • Unleash architecture
  • Pricing
  • Product vision
  • Open live demo
  • Open source
  • Enterprise feature management platform
  • Unleash vs LaunchDarkly

Support

  • Help center
  • Status
  • Changelog
Made in a cosy atmosphere in the Nordic countries.Copyright © 2026 Unleash
LogoLogo
13.5kProductPricingSign inStart free trialBook a demo
On this page
  • Overview
  • Manage Terraform access
  • Resources
  • API tokens
  • Environments
  • Projects
  • Users and roles
  • Service accounts
  • Single sign-on protocols
  • Context fields
  • Data sources
Integrate and deployIntegrations

Using Unleash through Terraform

||View as Markdown|
Was this page helpful?

Last updated May 11, 2026

Previous

Webhook

Next
Built with
v5.6

Overview

The Unleash Terraform provider enables you to manage and configure Unleash programmatically, leveraging infrastructure as code (IaC) for automated and scalable configuration.

This provider is designed to help you with the initial setup and configuration of an instance. The provider does not support managing feature flags through Terraform. Since most feature flags are short-lived, we recommend managing them through the Unleash Admin UI.

For a detailed video tutorial, check out Managing Unleash through Terraform. For more examples of specific resources and data sources, visit the Terraform registry.

Manage Terraform access

The permissions of the API token you use with Terraform and your Unleash plan determine which objects Terraform can manage:

  • For Open Source and Pro, use personal access tokens.
  • For Enterprise, use service accounts. For larger teams, we recommend multiple service accounts with different permissions and separate Terraform repositories for each team under their respective projects.

Resources

API tokens

  • unleash_api_token: Manage access and maintain secure communication with verified integrations.

Example usage:

1resource "unleash_api_token" "backend_token" {
2 token_name = "backend_token"
3 type = "client"
4 expires_at = "2024-12-31T23:59:59Z"
5 projects = ["default"]
6 environment = "development"
7}

Environments

  • unleash_environment: Create and manage environments.

Projects

  • unleash_project: Create and manage projects.
  • unleash_project_access: Assign access roles and users to specific project resources.
  • unleash_project_environment: Enable environments for projects and configure change requests.

Users and roles

  • unleash_role: Define permissions systematically.
  • unleash_user: Automate user management. Use send_email = true to generate an invitation link.

Service accounts

  • unleash_service_account: Define and manage service accounts for secure automated access.
  • unleash_service_account_token: Generate tokens associated with service accounts.

Single sign-on protocols

  • unleash_oidc: Manage your OpenID Connect configuration.
  • unleash_saml: Manage your SAML configuration.

Context fields

  • unleash_context_field: Create and manage context fields.

For example usage and schemas, visit the resources documentation of the Unleash Terraform provider.

Data sources

You can use the following data sources to fetch resources from Unleash:

  • unleash_environment
  • unleash_project
  • unleash_project_environment
  • unleash_user
  • unleash_role
  • unleash_permission
  • unleash_context_field

For example usage and schemas, visit the data sources documentation of the Unleash Terraform provider.