Redshift Data Export
Data Export is an add-on feature
Data Export is available as an add-on to select plans. To learn more, read about our pricing. To add Data Export to your plan, contact Sales.
Overview
This topic explains how to create and test a Redshift destination for Data Export. Redshift is a cloud-based data processing and analysis platform that lets you work with large sets of data. By exporting your LaunchDarkly experiment data to the same Redshift warehouse as your other data, you can build custom reports in Redshift to answer product behavior questions.
Prerequisites
To configure the Redshift Data Export integration, you must have the following prerequisites:
- Access to an existing provisioned Amazon Redshift cluster. The cluster must be provisioned, not serverless.
- IAM permissions in AWS to create roles, policies, and S3 buckets.
- A LaunchDarkly role with integration editing permissions.
- Ability to run SQL commands through Redshift Query Editor v2 or a SQL client.
- You must know your cluster endpoint. You can find this in your Redshift account.
- You need to allow LaunchDarkly’s data transfer service’s static IP address:
35.192.85.117
For best performance, your S3 bucket and your Redshift cluster should be in the same region.
Redshift naming conventions
Redshift automatically converts all unquoted identifiers including database names, schema names, table names, and column names to lowercase.
LaunchDarkly auto-generates these identifiers:
- Database:
ld_export. - Schema:
export_{projkey}__{envkey}. - Username:
ld_export_user_{projkey}__{envkey}. - S3 bucket:
ld-export-staging-{projkey}--{envkey}. LaunchDarkly replaces the underscores with hyphens.
Configure the LaunchDarkly integration
To begin, configure the LaunchDarkly integration with your AWS cluster identifier and endpoint. You can find your AWS cluster information in AWS by navigating to Amazon Redshift > Clusters > [your cluster name].

To add your AWS cluster information in LaunchDarkly:
- In LaunchDarkly, navigate to the Integrations page and find “Redshift Data Export.”
- Click Add integration. The “Create a destination” panel appears.
- Give the integration a human-readable Name.
- Select a Project and environment to export data from.
- Enter the Redshift cluster Endpoint of the destination.
- Enter the Cluster identifier.
- LaunchDarkly generates a SQL script. Copy this script to your clipboard for use in the Redshift Query Editor v2 or SQL client.
Keep the LaunchDarkly integration configuration panel open, as you will return to it later.
Add LaunchDarkly’s static IP address
Now, add LaunchDarkly’s data transfer service’s static IP address to your cluster’s security group settings:
- Navigate to your Redshift management console.
- Click Clusters.
- Select your Redshift cluster.
- Click the Properties tab.
- In the “Network and security settings” section, click the linked security group ID in the
VPC security groupfield. The “Security Groups” page opens. - Click the Inbound rules tab.
- Click Edit.
- Click Add Rule and populate the following fields:
- Type: Custom TCP
- Port Range: 5439 or your Redshift port
- Source: Select “Custom” and enter
35.192.85.117
- Click Save rules.
LaunchDarkly’s data transfer service can now connect to your Redshift cluster for data export.
Connect to your Redshift cluster and execute the SQL script
Before running the LaunchDarkly-generated SQL script, connect to your Redshift cluster in Query Editor v2:
- Open Redshift Query Editor v2 in the AWS console.
- Under “Clusters,” choose the correct cluster.
- In the “Edit connection” dialog, elect the appropriate authentication method that has permissions to create the database, create a user, and grant privileges.
- Select the secret associated with your cluster credentials in the Secret menu. This will look something like
redshift:redshift-data-export-cluster-1-awsuser. - After connecting, confirm you can see your cluster’s databases in the sidebar.
- In a new query tab, paste the SQL script you copied from LaunchDarkly.
- Click Run.

Running the SQL script creates the following database objects in Redshift:
ld_export: The export database.ld_export_user_{projkey}__{envkey}: The service user LaunchDarkly uses to connect using IAM auth. LaunchDarkly auto-generates{projkey}__{envkey}using your project and environment keys.CREATEandTEMPORARYprivileges: Grants LaunchDarkly permission to create tables and load data.
Create an S3 staging bucket in AWS
Next, return to LaunchDarkly and AWS to create an S3 staging bucket. LaunchDarkly uses S3 as a temporary staging area before loading data into Redshift.
To create the staging bucket:
- Return to the integration configuration panel in LaunchDarkly.
- Copy the S3 bucket name that appears in the Create S3 bucket on AWS field.
- Select an S3 staging bucket region. This should be the same region as your Redshift cluster.
- Navigate to your AWS S3 console and click Create bucket.
- Paste the Bucket name that you copied in step 2.
- Ensure the region you select matches the region you entered in step 3.
- Click Create bucket.
Create IAM policy
Now, create an IAM policy that allows LaunchDarkly to write to your Redshift cluster.
- Return to the integration configuration panel in LaunchDarkly.
- Copy the IAM policy that appears in the IAM Policy field.

- In your AWS console, navigate to Policies.
- Click Create policy.
- Select the JSON editor and replace
<ACCOUNT-ID>with your AWS account ID. - Paste the IAM policy you copied from LaunchDarkly into the policy document field.
- Add any policy details and create the policy.
You will use the policy you just created in the next section.
Create IAM role
Next, create an IAM role using the policy you just created:
- In the integration configuration panel in LaunchDarkly, copy the IAM role that appears in the IAM role field.
- In your AWS console, navigate to Roles.
- Click Create role.
- Select a Custom trust policy.
- Paste the IAM role you copied from LaunchDarkly into the role document field.
- Select the IAM policy you created in the previous section.
- Add any role details and create the role.
- Copy the ARN of the new role.
- In LaunchDarkly, paste the ARN of the new role into the IAM role ARN field.

Test and save the configuration
Finally, test your LaunchDarkly setup and save your configuration:
- In the integration configuration panel in LaunchDarkly, click Test connection. If successful, a confirmation message appears.
- After reading the Integration Terms and Conditions, check the I have read and agree to the Integration Terms and Conditions checkbox.
- Click Save destination.
Your Redshift Data Export destination is now configured.