Documentation
GuidesConnections

Connect to Snowflake

Create a Snowflake connection, grant its role access with generated setup SQL, and choose its databases, defaults, and warehouses.

This page explains how to connect a Snowflake account to Bobsled AI. Balto queries Snowflake tables through the connection, and Blueprint models and pipelines write their outputs there. For the steps that every provider shares, see Create and manage connections.

A Snowflake connection supports the following values for Authentication method:

  • Username and PAT: A Username secret and a PAT secret that hold a Snowflake user name and programmatic access token (PAT).
  • Workload identity: Keyless access, where your Bobsled AI environment provides it. Bobsled AI validates a short-lived token against the Snowflake account audience, issuer, subject, and expiry.

For workload identity, enter a base name in Snowflake service user. Setup adds a suffix to that name for each Bobsled AI environment, so each environment has its own Snowflake service user. The service users share the role that you configure separately.

Before you begin

  • Get the role that creates connections.
  • For Username and PAT, create the username and PAT secrets.
  • Create the Snowflake warehouses that the connection uses. Bobsled AI doesn't create, resize, suspend, or resume Snowflake warehouses.
  • Find a Snowflake administrator who can run the generated setup SQL.

Required permissions

Setup SQL generates grants for every database and schema pair and every warehouse in the connection. The connection role needs the following permissions:

Purpose
Permissions
Granted by Setup SQL
Run statements on a warehouseUSAGE on the warehouseYes, for every listed warehouse
Browse and read dataUSAGE on the database and schema, and SELECT on tables or viewsYes, reads for every listed location
Create model outputsCreation of schemas, tables, and viewsYes, as optional grants
Store temporary dataUSAGE on the staging database and schema, and CREATE TABLE on the staging schemaYes, when you set a staging schema

For Username and PAT, assign the configured role to the Snowflake user whose credentials you saved.

Setup summarizes the grants by location before it shows the SQL. Comments in the script explain which output workflows need each grant. The script keeps the creation grants unless you remove them. To keep a location read-only, remove its optional creation grants.

The script grants no writes to existing customer tables and no ownership of them. Removing a grant from the script doesn't revoke existing or inherited privileges. Removing a database or schema entry from the connection doesn't revoke Snowflake grants either.

The database and schema list doesn't restrict discovery or fully qualified queries. Snowflake checks privileges when Bobsled AI inspects or queries each object. Grant only the databases, schemas, warehouses, and operations that the Project needs.

Create a Snowflake connection

To create a Snowflake connection, do the following:

  1. On the Connections page, click Add connection, and then select Snowflake.
  2. Enter a Display name.
  3. Enter the Account identifier and the Snowflake role.
  4. In Databases and schemas, add each database and enter its comma-separated schema list.
  5. In Query defaults and model outputs, select a Default database and one of its schemas as the Default schema.
  6. Optional: In Temporary data (optional), enter a staging location.
  7. In Authentication method, select a method, and then enter its fields.
  8. In Execution target, add each existing warehouse, and then select a Default warehouse.
  9. Click Save connection. The dialog shows the grant summary and the generated setup SQL.
  10. Ask a Snowflake administrator to run the SQL.
  11. Click Test connection.

To see the SQL later, in the connection's row, open More actions, and then select Setup SQL.

The Snowflake connection form, with query defaults, a default output location, and optional temporary data settings.

Test connection checks connectivity with the configured role and default warehouse. It doesn't confirm every read or output permission. Test with the same role and default warehouse that the connection uses at runtime.

Databases, defaults, and outputs

Each database has its own comma-separated schema list. Existing connections start with their saved database and schema. One connection can browse every database that its Snowflake role can see. After you grant access to another database, refresh discovery.

Databases and schemas lists the locations that setup SQL includes. Adding a location doesn't add its assets to your Blueprint. Add the assets that you select through Blueprint source definitions.

Default database and Default schema set the session defaults and the default Blueprint output location. Default output location shows the resolved pair. Models can override their output destination. Pipelines use these defaults when this connection is their destination.

Fully qualified table names let one query join tables across granted databases. Balto can query physical Snowflake tables through their saved connection without Blueprint models.

Bobsled AI stops a new model output if a table or view already exists at that location without a successful run for the same model. To preserve the existing object, choose a different output location.

Temporary data

Temporary data (optional) contains Staging database (optional) and Staging schema (optional). Bobsled AI creates temporary and intermediate tables there and manages their cleanup. This location doesn't change model or pipeline output destinations.

Leave Staging database (optional) blank to use the default database. Bobsled AI checks staging permissions when a workflow needs that location.

Warehouses

Create and manage Snowflake warehouses in Snowflake. In Bobsled AI, add each existing warehouse to the connection's Execution target section. Each entry stores an internal warehouse ID and the matching Snowflake warehouse name. Choose one entry as the Default warehouse.

Balto reads these IDs from list_connections:

  • For warehouse, it uses an ID from the warehouseTargets of the source or model connection.
  • For destination_warehouse, it uses an ID from the warehouseTargets of the managed Snowflake destination connection.

For more information, see Select a Snowflake warehouse.

If you add a warehouse later, update the connection and apply the new USAGE grant.

What's next

On this page