LaunchDarkly Source PluginPremium
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).
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.
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.
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"] # LaunchDarkly specific configuration spec: backend_options: table_name: "test_state_table" connection: "@@plugins.postgresql.connection" access_token: "<YOUR_ACCESS_TOKEN_HERE>"
The LaunchDarkly plugin supports incremental syncing for audit log data. This means that only new audit log entries will be fetched from LaunchDarkly and loaded into your destination. This is done by keeping track of the entry fetched and only fetching entries that has been created since then.
To enable this,
backend option must be set in the spec (as shown in the example). This is documented in the Managing Incremental Tables section.
This is the (nested) spec used by the LaunchDarkly source plugin:
access_token(string, required): Your access token from LaunchDarkly.
timeout_secs(integer in seconds, optional. Default: 30): Timeout for requests against the LaunchDarkly API.