What you’ll learn
In this guide, you’ll learn how to:- Add a Bolt Scheduler connection
- Add a TurboCI connection
- Manage your connections
- Use targets with dbt™ commands
Video Tutorial
The following video provides step-by-step instructions for adding a scheduler environment (bolt scheduler) and a Turbo CI connection.1. Add a Bolt Scheduler Connection
This connection will be used as the default target for your Bolt schedules to run dbt™ in production.- Navigate to your account settings
- Locate the
Connectionstab. - Click
Add Newbutton in the Scheduler section. - Select your data warehouse provider (e.g., Snowflake)
- Configure the connection details.
- Click ‘Test Connection’ to verify the setup.
2. Add a TurboCI Connection
This connection will be used specifically for running dbt™ with TurboCI to build and test your dbt™ models when opening a Pull Request.- Follow steps 1-3 from the above section, Add a Bolt Scheduler Connection
- Configure the connection details:
- Provide a dbt™ profile name (This should match with the profile name set in your
dbt_project.yml). - Set the target as
CI. - Enter your data warehouse credentials (similar to the Scheduler prod connection).
- Change the schema name to
dbt_ci(or your preferred CI schema). - Configure thread settings as needed.
- Provide a dbt™ profile name (This should match with the profile name set in your
- Click
Test Connectionto verify the setup.
3. Manage Your Connections
After setting up your connections, you’ll have:- A
prodtarget connection for orchestrating production jobs. - A
citarget connection for running dbt™ with TurboCI.
4. Using Targets with dbt™ Commands
After setting up multiple connections, it’s important to understand how to direct your dbt™ commands to use a specific target. This allows you to switch between multiple environments easily.Default Behavior
By default, when you run a dbt™ command without specifying a target:- In the Code IDE: It will use the default connection set for the Code IDE.
- In the Scheduler: It will use the default connection set for the Scheduler.
Specifying a Target
To use a specific target, append the--target argument to your dbt command:
ci target, regardless of the default setting.
Related Documentation