• Home
  • Integrations
  • SDKs
  • Guides
  • API docs
No results for ""
EXPAND ALL

EDIT ON GITHUB

Terraform

Read time: 1 minute
Last edited: Sep 13, 2021
The Terraform provider is a Pro and Enterprise feature

The Terraform provider is available to customers on a Pro or Enterprise plan. To learn more, read about our pricing. To upgrade your plan, contact Sales.

Overview

This topic explains what the LaunchDarkly Terraform provider is, what you can use it for, and where to find additional documentation for it.

Use the LaunchDarkly Terraform provider to manage LaunchDarkly resources as Terraform resources. This allows you to use Terraform scripts to configure and control feature flags, environments, projects, and more.

You do not have to choose between the LaunchDarkly user interface (UI) and the Terraform provider. You can use a hybrid of both if that meets your needs better. It may make sense to manage one set of LaunchDarkly resources through the Terraform provider, and another set through the UI. For example, you could designate a group of flags to update and configure only through the Terraform provider.

The Terraform provider and custom roles

A common scenario is to use custom roles to define the LaunchDarkly entities that are managed by Terraform. For example, you can tag Terraform-managed resources with a terraform tag, and use custom roles to prevent team members from modifying those resources with the LaunchDarkly UI.

To learn more about custom roles, read Custom roles.

Using the Terraform provider

To learn more about using the Terraform provider, read the LaunchDarkly Terraform provider documentation hosted on Terraform's site. Detailed examples of how to configure LaunchDarkly with the Terraform provider are available in the terraform-provider-launchdarkly repository.

For a guide on how to use Terraform to manage your LaunchDarkly resources, read Managing flags with Terraform.