» LaunchDarkly Provider

LaunchDarkly is a continuous delivery platform that provides feature flags as a service and allows developers to iterate quickly and safely. Use the LaunchDarkly provider to interact with LaunchDarkly resources, such as projects, environments, feature flags, and more. You must configure the provider with the proper credentials before you can use it.

» Example Usage

# Configure the LaunchDarkly provider
provider "launchdarkly" {
   version     = "~> 1.0"
  access_token = var.launchdarkly_access_token
}

# Create a new project
resource "launchdarkly_project" "terraform" {
  # ...
}

# Create a new feature flag
resource "launchdarkly_feature_flag" "terraform" {
  # ...
}

» Argument Reference

The provider supports the following arguments:

  • access_token - (Optional) The personal access token you use to authenticate with LaunchDarkly. You can also set this with the LAUNCHDARKLY_ACCESS_TOKEN environment variable. You must provide either access_token or oauth_token.

  • oauth_token - (Optional) An OAuth V2 token you use to authenticate with LaunchDarkly. You can also set this with the LAUNCHDARKLY_OAUTH_TOKEN environment variable. You must provide either access_token or oauth_token.

  • api_host - (Optional) The LaunchDarkly host address. If this argument is not specified, the default host address is https://app.launchdarkly.com.