Documentation
Plugins
Sources
LaunchDarkly
Overview

LaunchDarkly Source Plugin

Premium

This is a premium plugin that you can buy here.

The CloudQuery LaunchDarkly plugin pulls data from LaunchDarkly and loads it into any supported CloudQuery destination (e.g. PostgreSQL, BigQuery, Snowflake, and more).

Authentication

In order to fetch information from LaunchDarkly, cloudquery needs to be authenticated using an Access Token from your LaunchDarkly account. You can view and manage your access tokens in LaunchDarkly Account settings > Authorization. Refer to REST API Authentication (opens in a new tab) for more information.

Access Token API Version

Creating the access token you should select at least 20220603 as the API version. This is the minimum API version supported by the LaunchDarkly plugin. Refer to API version changelog (opens in a new tab) for more information.

Example

This example syncs from LaunchDarkly to a Postgres destination. The (top level) source spec section is described in the Source Spec Reference.

kind: source
# Common source-plugin configuration
spec:
  name: launchdarkly
  path: /path/to/downloaded/plugin # Buy from here: https://cloudquery.io/integrations/launchdakrly
  registry: local
  version: "PREMIUM"
  tables: ["*"]
  destinations: ["postgresql"]
  backend_options:
    table_name: "cq_state_launchdarkly"
    connection: "@@plugins.postgresql.connection"
  # LaunchDarkly specific configuration
  spec:
    access_token: "<YOUR_ACCESS_TOKEN_HERE>"

Note that if backend_options is omitted, by default no backend will be used. This will result in all items being fetched on every sync.

For more information about managing state for incremental tables, see Managing Incremental Tables.

Configuration Reference

This is the (nested) spec used by the LaunchDarkly source plugin:

  • access_token (string) (required):

    Your access token from LaunchDarkly.

  • timeout_secs (integer) (optional) (default: 30):

    Timeout (in seconds) for requests against the LaunchDarkly API.