Skip to main content

Quickstart for MotherDuck on Ascend

Scale up using MotherDuck with Ascend.

Prerequisites

Before you begin, ensure you have the following:

Grant your Ascend Environment access

You'll need to place a MotherDuck API key with sufficient permissions in your Ascend Environment's Vault.

tip

We use the Ascend-managed Environment Vault for this quickstart for simplicity, though you can bring your own vault from any major cloud provider.

Create a MotherDuck API key

In the MotherDuck UI, navigate to Settings from the top left dropdown.

MotherDuck settings

Navigate to Access Tokens.

MotherDuck access token

Click Create Token.

New MotherDuck access token

Create a secret in your Ascend Environment Vault

In the Ascend UI, navigate to Settings > Secrets & Vaults > Environment Vaults > the Default Environment's Vault.

Vaults

Click to Add Secret and name it MOTHERDUCK_API_KEY, pasting in the API key you created in MotherDuck.

New secret

Save and proceed!

Create a MotherDuck Data Plane Connection

Navigate to your Workspace. Click the + button next to Connections from the Super Graph. You should only need to fill out the API key field, then you can Test Read Connection.

tip

If you don't see the Connections section in the Resources tab of the Toolbar, you are likely in a Flow Graph. Use the search bar and type "Super Graph" or click back to all resources from the Toolbar (Resources tab).

New MotherDuck Connection

Alternatively, create the file connections/data_plane_motherduck.yaml in your Project's files:

connection:
duckdb:
motherduck:
api_key: ${vaults.environment.MOTHERDUCK_API_KEY}

Use MotherDuck by default for all Flows

Ask Otto, or find and edit your ascend_project.yaml at the root of your Project's files. You can set the defaults section to use your new MotherDuck Data Plane Connection, assuming you named it data_plane_motherduck, like:

project:
...
defaults:
- kind: Flow
name:
regex: .*
spec:
data_plane:
connection_name: data_plane_motherduck
- kind: Flow
name:
regex: .*-duckdb
spec:
data_plane:
connection_name: data_plane_duckdb

Any Flows that end in -duckdb will still use the default Ascend-managed DuckDB Data Plane Connection.

Next steps

Try running the demo sales Flow or use Otto to create your first data pipeline with MotherDuck on Ascend.