How to Use the RudderStack Config Generator

Step-by-step guide to setting up and using the RudderStack Config Generator

RudderStack has two components - the Control Plane and the Data Plane. The Data Plane reliably delivers your event data, while the Control Plane manages the configuration of your sources and destinations.

The easiest way to manage these configurations is through RudderStack's Hosted Control Plane. It is free, requires no setup, and allows you to send events with a limit of 1000 events/hour.

You can also use the RudderStack Config Generator if you wish to manage the source and destination configurations locally, by exporting to or importing them from a JSON file.

Setting up the RudderStack Config Generator

Before setting up the RudderStack Config Generator, make sure you have RudderStack installed locally. You can find the instructions for setting up RudderStack for the platform of your choice in the Install and Set Up RudderStack guide.

Please make sure you have Node.js installed before setting up the RudderStack Config Generator.

In order to set up the RudderStack Config Generator, you will need to run the following commands in the specified order:

  1. cd utils/config-gen

  2. npm install

  3. npm start

The RudderStack Config Generator can be accessed at http://localhost:3000 by default.

On successful setup, you should be able to see the following UI:

RudderStack Config Generator

Exporting Workspace Configuration

After you add the required sources and destinations in the dashboard as shown above, you can export your workspace configuration by simply clicking the EXPORT button. The configuration is then exported and saved as a JSON file. This workspace configuration is required to start the RudderStack server.

To know how to add your sources and destinations in RudderStack, please refer to our documentation on Adding a Source and Destination in RudderStack.

To read the workspace configuration from the exported JSON file, you can update the config variables configFromFile and configJSONPath.

Starting RudderStack with the Workspace Configuration File

For RudderStack to pick up the exported workspace configuration file, please follow the steps below:

If you are running RudderStack on Docker:

  • Open rudder-docker.yml.

  • Uncomment volumes section under backend service. Replace <absolute_path_to_workspace_config> with the absolute path of the downloaded workspace configuration file location.

  • In environment section under backend service, uncomment the environment variable RSERVER_BACKEND_CONFIG_CONFIG_FROM_FILE=true.

For a Native RudderStack Installation:

  • Open .env file.

  • Add RSERVER_BACKEND_CONFIG_CONFIG_FROM_FILE=true to the file

  • Also add RSERVER_BACKEND_CONFIG_CONFIG_JSONPATH=<absolute_path_to_workspace_config>. Replace <absolute_path_to_workspace_config> with the absolute path of the downloaded workspace configuration file location.

If you have setup RudderStack on a developer machine:

  • Open config/config.toml. Look for configFromFile and configJSONPath under [BackendConfig]. Set configFromFile to true and configJSONPath to the absolute path of the downloaded workspace configuration file location.

Contact Us

In case you come across any issues while setting up or using the RudderStack Config Generator, please feel free to contact us. You can also start a conversation on our Discord channel. We will be happy to help you!