Set up MotherDuck with Ascend
Overview
In this quickstart guide, you'll learn how to use MotherDuck as your Data Plane in Ascend.
This guide will take you through the following steps:
- Generate a MotherDuck API key
- Store your MotherDuck API key
- Configure your Ascend Workspace & Project
- Run the
salesFlow and view the resulting tables in MotherDuck
Prerequisites
- Ascend Instance
- MotherDuck account
- Familiarity with the role of the Data Plane in Ascend
Generate a MotherDuck API key
- Open the MotherDuck UI
- Click on your organization's name in the top left
- Navigate to Settings > Access Tokens
- Click + Create Token
- Give your token a descriptive name like
ascend_default_data_plane - Ensure the token type is set to
Read/Write Token - (Optional) Set an expiration date for your token if desired
- Click Create token
- Copy your token immediately to use in the next step
Store your MotherDuck API key
Store your MotherDuck API key as an Environment Vault secret to securely configure your MotherDuck Data Plane:
- In your Ascend Instance, click on your profile picture in the top-right corner and select Settings
- Navigate to the Secrets & Vaults section
- Select the Default Environment Vault
- Click Add secret
- Name your secret
MOTHERDUCK_API_KEYand paste the API key in the Value field - Click Create to store your secret
Configure your Workspace & Project
Alternatively, you can keep the out-of-the-box Project configuration and create a new MotherDuck Data Plane Connection instead. This allows you to use the existing setup and proceed directly to running the sales Flow.
Configure your Default Ascend Project to use the MotherDuck-specific template:
- In the top-right corner of your Ascend Instance, click on your profile picture and select Settings
- Go to Projects & Deployments and select the Default Project
- Change the Project root to
projects/default/motherduck - Click Save to apply your changes
- Navigate back to your Ascend Workspace via the homepage or with
Cmd+Ksearch navigation
Run the sales Flow
- In the Super Graph view of your Ascend Workspace, double-click the
salesFlow to open the Flow Graph view, which shows all Components in thesalesFlow - In the build info panel on the top left, click Run Flow and watch all Components in your Flow execute from left to right
View Ascend tables in MotherDuck
- Open MotherDuck
- In the left panel, expand the
__ascend_workspace_templatedatabase underAttached databasesnoteWhen no
databaseparameter is specified in the MotherDuck Connection configuration, Ascend automatically creates a dedicated MotherDuck database for each Profile. Because the default Profile isworkspace_template, your database name is__ascend_workspace_template. - Expand the
salesschema - Click the three dots next to the
read_sales_websitetable - Select
Query in current notebookfrom the menu - View your data in the query output
This demonstrates Data Plane persistence in action!
🎉 Congratulations! You've successfully configured MotherDuck as your Data Plane and run your first Flow!
Next steps
👩🏻💻 Follow the developer quickstart to build your own Flow in Ascend