Data Export is an add-on featureData Export is available as an add-on feature to select plans. To learn more, read about our pricing. To add Data Export to your plan, contact Sales.
Prerequisites
To configure the Snowflake Data Export integration, you must have the following prerequisites:- You must have the
ACCOUNTADMINuser role in Snowflake - You must have a LaunchDarkly role that allows you to add and edit integrations and add destinations
- You need to allow LaunchDarkly’s data transfer service’s static IP address:
35.192.85.117
- You must know your Snowflake account URL. You can retrieve your Snowflake account/server URL by navigating to the user menu in Snowflake, hovering on Account, then clicking View account details:

The "Copy account URL" option in Snowflake.
- If you use network policies within your Snowflake account, you must allow traffic from LaunchDarkly. The setup script you generate in the next section creates the required network rule and policy for you when you turn on the Allowlist the LaunchDarkly IP option.
One Data Export destination per environmentYou can configure only one Data Export destination per LaunchDarkly environment, regardless of destination kind. If you need more than one Data Export destination for the same data, configure them in different environments.
Connect your LaunchDarkly environment to Snowflake
The Snowflake Data Export setup uses a two-step flow. First, you generate a setup script in LaunchDarkly. Then, you run the script in Snowflake and return to LaunchDarkly to test the connection and save your destination. We recommend having two browser windows or tabs open to switch between LaunchDarkly and Snowflake. When you set up the integration, LaunchDarkly generates a SQL script that creates the Snowflake objects the integration needs. You can use the default names or customize them in step 7 of the following procedure. To learn what the script creates, read About the setup script. To connect your LaunchDarkly environment to Snowflake:- In LaunchDarkly, click the gear icon in the left sidebar to view Organization settings.
- Click Integrations and find “Snowflake Data Export.”
- Click Add integration. The Snowflake Data Export configuration page appears.
- Give the integration a human-readable Name.
- Choose a Project and environment to export data from. Environments that already have a Data Export destination are unavailable. When you choose an environment, LaunchDarkly fills in the default Snowflake object names for it.
- Enter your Snowflake account URL.
-
(Optional) Customize any of the Snowflake object names listed below. If you leave a field blank, LaunchDarkly uses the default value. Each name can contain letters, digits, underscores, and
$. Names must start with a letter or underscore and can be up to 255 characters. LaunchDarkly converts names to uppercase as you type.- Database name: Defaults to
LD_EXPORT. Shared across all environments. - Warehouse name: Defaults to
LD_EXPORT_WH. Shared across all environments. - Schema name: Defaults to
EXPORT_<projKey>__<envKey>, where<projKey>is your project key and<envKey>is your environment key. LaunchDarkly converts both keys to uppercase and replaces each character other than a letter or digit with_. Unique to a project and environment. - Role: Defaults to
LD_EXPORT_ROLE. Shared across all environments. - Username: Defaults to
LD_EXPORT_USER_<projKey>__<envKey>, with the keys converted the same way. Unique to a project and environment.
- Database name: Defaults to
-
(Optional) If your Snowflake account uses network policies, turn on Allowlist the LaunchDarkly IP. The generated script then creates the required Snowflake network rule and policy. When this option is on, the database and schema names cannot contain
$$. - Click Generate SQL. LaunchDarkly returns a setup script that creates the warehouse, database, role, schema, and user with the names you chose.
- Copy the generated script and, in Snowflake, paste it into a worksheet.
- Run the worksheet in Snowflake. This creates the necessary Snowflake resources.
- After reading the Integration Terms and Conditions, select the I have read and agree to the Integration Terms and Conditions checkbox.
- In LaunchDarkly, click Test connection and save. LaunchDarkly tests the Snowflake connection and, if it succeeds, creates and activates the destination.
Run the most recent setup scriptIf you change any field other than Name or the Integration Terms and Conditions checkbox after you generate the script, LaunchDarkly clears the script. Click Generate SQL again and run the new script in Snowflake before you click Test connection and save.Each time you click Generate SQL, LaunchDarkly creates a new key pair for the Snowflake user. Always run the most recently generated script. The Snowflake user must have the current public key.
Enable Data Export for flags and environmentsAfter you create the destination, you must enable Data Export for individual flags, or for all the flags in an environment. Otherwise, LaunchDarkly does not export flag event data to Snowflake. To learn more, read Export event data for flags and environments.
About the setup script
The setup script that LaunchDarkly generates uses the names you chose in LaunchDarkly, and its core steps run as theSYSADMIN and SECURITYADMIN roles. The script creates each object only if it does not already exist, which means you can run it more than once.
The script does the following:
- Creates an
XSMALLstandard warehouse that suspends after 60 seconds of inactivity and resumes automatically. - Creates the database and the role, and grants the role to
SYSADMIN. This does not give the role the privileges ofSYSADMIN. - Grants the role
USAGEon the warehouse,MONITORandUSAGEon the database, andUSAGEandCREATE TABLEon the schema it creates. - Creates a Snowflake user with
TYPE = SERVICE, sets its default role and warehouse, grants it the role, and sets its public key. LaunchDarkly connects with key-pair authentication, which means the user has no password.
ACCOUNTADMIN role to create or update a network rule named LD_DATA_EXPORT_NETWORK_RULE in the export schema, and a network policy named LD_DATA_EXPORT_NETWORK_POLICY. If the rule already exists, the script keeps its existing IP addresses and adds the LaunchDarkly IP address. The script then assigns the policy to the LaunchDarkly member only. It does not change your account-level network policy.
View an existing destination
The destination setup is visible on the edit page, which lets you confirm which account URL, database, warehouse, schema, role, and user a destination uses. However, all connection fields on the edit page are read-only. The project and environment you chose in the initial configuration are permanent and cannot be changed. To view an existing Snowflake Data Export destination:- Click the gear icon in the left sidebar to view Organization settings.
- Click Integrations and find “Snowflake Data Export.”
- Find the destination you want to view and click Edit. The Snowflake Data Export configuration page appears with the destination’s settings.
- Name: Click the Edit name icon next to the Name field, enter a new name, and click the Save name icon.
- Maintainer: Choose a new maintainer in the side panel. You must have a role that lets you edit the destination.
Delete a destination
Deleting a destination stops LaunchDarkly from exporting data to Snowflake for that environment. To delete a Snowflake Data Export destination:- Open the destination’s edit page, as described in View an existing destination.
- Click the Delete integration icon. A confirmation dialog appears.
- Type
DELETEand click Delete.