For the complete documentation index, see llms.txt. This page is also available as Markdown.

dbt Projects on Snowflake

Connect deployed Snowflake dbt project objects to Euno to discover dbt resources, lineage and build results without an artifact upload job. One Euno source can cover several project objects in the same Snowflake account.

Euno reads existing executions and downloads their artifacts. It never starts a dbt build or docs generate execution. Snowflake Workspace executions are excluded; Snowflake Tasks, Git repository objects and the dbt project object itself are not added as new Euno resource types.

Before you start

  • Deploy your dbt project as a Snowflake dbt project object and complete an execution that produces manifest.json and run_results.json.

  • Produce catalog.json, either in that execution or through a separate docs generate execution for the same project object and dbt target. The catalog is required by default.

  • Choose a Snowflake service user, role and warehouse. You can reuse those used by your existing Snowflake source, after checking the permissions below. Key-pair authentication is recommended.

  • If access must originate from your network, use a connected local agent. The existing Snowflake agent and Azure Key Vault handles can be reused unchanged.

Snowflake makes execution artifacts available for up to 14 days; a history row does not guarantee that files are still available. Deployment-time compilation is not a qualifying execution. See Snowflake's artifact access requirements and retention.

Snowflake permissions

Have your Snowflake administrator grant the configured role the following access:

Access
Scope
Purpose

USAGE

Warehouse

Run the history queries and required functions

USAGE

Each project's database and schema

Access the parent containers

MONITOR

Each dbt project object

Discover projects, read execution history and retrieve artifacts

Read access

SNOWFLAKE.ACCOUNT_USAGE.DBT_PROJECT_EXECUTION_HISTORY

Read the history used for the 14-day search

OWNERSHIP, optional lookup only

Git repository clone

Discover the remote URL with DESCRIBE GIT REPOSITORY; a Repository URL override avoids this lookup

READ, optional

Git repository clone

Discover branch names with SHOW GIT BRANCHES; branch and project-folder overrides together avoid this lookup

USAGE, optional

Git repository's database and schema

Access parent containers for optional Git lookups

Use MONITOR on the dbt project object, rather than granting project USAGE or OWNERSHIP for this integration. Euno does not need to execute the project. Snowflake documents MONITOR as sufficient for project discovery and artifact location.

For example, adapt these object and role names to your environment. This grants project access to an existing service user; it does not grant Account Usage access:

Account Usage access is a separate requirement. Ask your administrator to use an appropriate Snowflake database-role grant or an approved equivalent, following Snowflake's Account Usage access guidance. Project MONITOR alone is insufficient; do not assume a role that reads the recent Information Schema history can read this view. Check access using the same role and service-user connection that Euno will use:

A successful query with no rows proves query access, not that a suitable execution exists or that its artifacts can be retrieved. Query errors must be resolved before connecting the source.

Optional Git metadata may live in a different schema. For a repository such as ANALYTICS.GIT.DBT_REPO, an example branch-access combination is USAGE on database ANALYTICS and schema ANALYTICS.GIT, plus READ on the Git repository clone. Remote-URL discovery has the separate OWNERSHIP requirement above. Repository ownership is unnecessary for dbt artifact ingestion: use the manual Git settings to supply links without those lookups.

Network access and local agents

The connection needs the Snowflake account endpoint and its stage-storage endpoints. Artifact downloads can use cloud storage hosts different from the Snowflake account host. Permit the required account, STAGE and certificate-validation endpoints, using the ports returned by Snowflake's SYSTEM$ALLOWLIST(); use SYSTEM$ALLOWLIST_PRIVATELINK() for private connectivity. Allowing only <account>.snowflakecomputing.com can let login and queries succeed while artifact downloads fail.

When a local agent is selected, Snowflake authentication, SQL, certificate checks, result downloads and dbt artifact downloads use that agent. Its host must resolve and reach the required endpoints and maintain its outbound connection to Euno's relay. Azure Key Vault handles also require access to the configured vault and the host's managed identity. No inbound database port needs to be opened for Euno.

The selected agent is authoritative. If it disconnects or cannot retrieve a required credential, the source fails visibly; Euno does not retry directly from its cloud. A Snowflake network policy must allow the selected connection's source address.

Configure the source

  1. Open Sources, choose Add New Source, and select dbt Projects on Snowflake.

  2. Enter a source name and the connection settings below.

  3. For agent access, expand Advanced, select your Local agent, and select any existing User, Private Key and Passphrase handles. A selected handle replaces the corresponding manual input. Keep Passphrase empty for an unencrypted key.

  4. Set project, command and target filters, then review catalog and cleanup options. Start with a narrow production project/target scope.

  5. Click Test & Save. Euno checks connection, discovery, history and artifact listings. It does not download artifact payloads or import resources during this test.

  6. Run the saved source once using Run on its detail page, then open the completed run's report and check the Data Model. Enable a schedule after the first import meets your expectations.

Connection setting
Value

Host

Your Snowflake account host, for example myorg-myaccount.snowflakecomputing.com

User

Service-user login, supplied directly or through an agent handle

Private Key

RSA private key in PEM format, supplied directly or through an agent handle

Passphrase

Private-key passphrase when the key is encrypted

Role

Role with the required access; leaving it empty uses the user's default

Warehouse

Warehouse for the queries; leaving it empty uses the user's default

Password (deprecated)

Legacy alternative to key-pair authentication

Inline secret fields use Euno's normal credential storage. With vault handles, Euno saves references and resolves values transiently for Test/Save and source runs. Follow the agent deployment and vault setup guide; do not copy resolved values between sources.

If no dbt project objects are visible, validation fails with guidance to check project MONITOR and parent-container access. If a visible project has no newest-execution artifact files, validation can succeed with an advisory. Saving successfully is not proof that the next import will find usable artifacts or a catalog.

Test and validated Save check every project matched by the project filter; exact-query mode bypasses that filter. They read the newest execution metadata from both history sources within the fourteen-day window and check its artifact listing. They show at most twenty project warnings plus an aggregate count; this display limit does not limit which projects are checked. Large project scopes can take longer, so use the project filter to keep the intended scope clear. The import reads full execution history and validates artifact contents separately.

Advanced settings

Setting
Default / behavior

Project object (DATABASE.SCHEMA.NAME)

Include/exclude regular expressions; allow all by default. Match the fully qualified name as Snowflake returns it, with its original spelling. Matching ignores case by default. Example: ^Analytics\.Dbt\.CoreProject$.

dbt command

Default include pattern: ^(build|run|test|seed|snapshot)$. Catalog donor discovery is separate from this filter.

dbt target

Include/exclude regular expressions; allow all by default. Example: ^prod$.

Skip selective executions

Enabled. Skip executions using --select, -s, --exclude or --selector. If disabled, normalized selection is added to the execution group.

Use catalogs from docs generate executions

Enabled. Borrow a missing catalog from the newest eligible docs generate execution of the same object and resolved target within 14 days.

Allow a partial or missing catalog

Disabled. Enabling it permits resources without matching catalog entries; warehouse matching and catalog metadata may be incomplete.

Exact execution query ID

Empty. Select one execution within the 14-day window, bypassing project, command, target and selective-run filters. Required artifacts, eligible state, target resolution and catalog policy still apply.

Override Build Target

Empty. Override the warehouse table URI prefix, usually to match the existing Snowflake source.

Repository URL override / Repository branch override / Project directory in repository

Optional Git-link settings when automatic metadata is unavailable or unsuitable.

Turning a filter off allows all values for that field. Include/exclude patterns limit selection, not the Snowflake privileges of the service user.

Case sensitivity is configured through the API using ignoreCase: false; the form does not expose a case-sensitivity control. Editing include/exclude patterns in the form preserves an existing API-set flag. For case-sensitive project filters, use the actual capitalization of the database, schema and project names. Turning a filter off removes its settings; re-enabling it starts with the default case-insensitive behavior.

The target comes from execution arguments when explicitly supplied. Otherwise Euno uses the object's current default target and reports current_default as the target source. If that default changed after an old execution, grouping and catalog selection can reflect the new default. Specify a target explicitly in your dbt executions when historical target identity matters.

An exact query ID pins the build's manifest and run results; Euno will not replace them with a different build. Catalog borrowing remains enabled unless you turn it off. A docs-only execution or Workspace execution cannot be imported as a build. Processing an older execution can update current resource properties, so exact-query mode is not a read-only historical view.

Catalog freshness

Euno prefers the selected execution's own catalog. If it is missing, enabled borrowing uses the newest eligible docs donor for the same object and target. Individual files are tried first, with the same execution's ZIP used for missing files.

The donor does not need to share a deployment or Git commit with the selected build, and it may be newer than the build. Its metadata can describe a different version of the warehouse. The run report identifies the donor query ID; inspect it when freshness matters. Turning borrowing off keeps the catalog within the selected execution, subject to the partial/missing-catalog option.

What a source run imports

Euno searches the preceding 14 days of execution history. Recent Information Schema history is combined with Account Usage history and duplicate query IDs are removed. Account Usage can lag by up to two hours; Euno cannot promise immediate visibility or retrieval of every history row's artifacts.

Executions are grouped by project object, command and resolved target, with normalized selection included when selective executions are enabled. Within each group, Euno chooses the newest eligible SUCCESS or HANDLED_ERROR execution with the required artifacts. HANDLED_ERROR allows results containing failed dbt tests to be imported.

If required files are confirmed absent, Euno tries up to five eligible candidates in total, including the newest, within the same window. Permission, transfer and malformed-artifact failures are errors, not evidence that files are absent. Unavailable or excluded executions and groups appear in the report; a run is not a complete inventory of every project that exists in Snowflake.

Euno uses the existing dbt artifact reader for models, sources, seeds, snapshots, exposures, semantic resources, columns and lineage. Unchanged artifact fingerprints skip duplicate resource processing within 24 hours; after that interval, identical artifacts can be processed again. Downloads and archiving happen before this decision, so a matched_skipped report can still show successful transfers and fresh archives.

Current test health

The current Data Model health properties describe values emitted by executions that Euno actually processes. They follow dbt Core and Cloud behavior: each emitted health property replaces its complete prior value. An emitted empty failing-test list clears the previous list; a property omitted by the reader is not cleared merely because a run happened.

A selective execution processed later can replace earlier health results, and an older execution processed later can overwrite current values. Separate execution groups do not protect shared resource properties from this behavior. Euno does not merge the latest known result of every active test. Historical build/test events remain separate from this current health summary.

Reports and stored artifacts

Open the source run report to review project discovery, history sources, skipped-execution counts, selected query IDs, target provenance, catalog source/donor, transfer/archive counts, fingerprint outcomes and processing failures. Execution argument keys remain visible, but their values are redacted.

Warehouse alignment is compared with saved Snowflake sources in the same Euno account. A mismatch or inconclusive advisory allows saving and ingestion to continue; it means expected table lineage may not connect. A matching configured prefix is not proof of a complete warehouse import. Check the report and actual table relationships after the run.

Euno archives the original retrieved JSON artifacts and catalog-donor provenance within the account/source scope. Report redaction does not sanitize those originals: artifacts can contain variables, compiled SQL and other sensitive project context. Apply your normal controls to artifact storage and support access. This integration adds no public artifact-download endpoint; an archive does not extend the crawler's 14-day search window.

Euno can discover Git information from the dbt object's current source location and its Snowflake Git repository clone. If an optional lookup is denied, unavailable or ambiguous, ingestion can continue with a run-report advisory; links to source files may be missing or incomplete.

Use these fields under Advanced to supply the information manually:

Setting
Lookup avoided

Repository URL override

DESCRIBE GIT REPOSITORY

Repository branch override and Project directory in repository, both supplied

SHOW GIT BRANCHES

Supplying only one of branch or project directory still leaves a lookup for the missing value. Supply all three fields to avoid both queries. Use / for a project at the repository root.

Discovered links describe the current deployment location. Neither discovery nor manual settings verify the commit used by a historical execution; Euno leaves the repository revision unset.

Resource identity, migration and cleanup

dbt resources reuse the identities used by dbt Core and Cloud. Matching dbt project names and unique node IDs is necessary for migration; warehouse lineage also needs the same effective build-target prefix. Different Snowflake project objects or targets can still produce the same dbt node URIs. Filter to the intended object/target to avoid DEV and PROD updating the same resources; Euno does not automatically separate those environments.

To migrate from dbt Cloud:

  1. Configure the Snowflake source for the same dbt project/node identities and intended production object/target.

  2. Check Override Build Target against the warehouse table prefix. The existing Snowflake source's Override Host URI setting (override_base_uri) changes table identifiers; its parent platform URI is separate.

  3. Run the new source and compare dbt identities, warehouse relationships, descriptions and glossary links.

  4. After confirming the import, disable the old Cloud source's schedule/triggers so it stops writing the same resources. During overlap, both sources can sponsor the same resources and later processed updates can win.

Cleanup follows the existing resource sponsorship rules, with a seven-day default for time-based cleanup. Cleanup removes stale Euno metadata, never Snowflake tables. Under a nonzero cleanup period, a normally completed crawl can allow older metadata to age out even if some groups failed or were excluded. Fatal failures/cancellation prevent normal completion cleanup; an empty or fingerprint-only crawl cannot authorize retirement.

Immediate Cleanup reprocesses matching fingerprints so resources are observed again. It preserves prior resources if included project history or artifact preparation is incomplete, eligible arguments/targets cannot be resolved, or the crawl requests one exact query. Intentional filters still define the intended scope: a complete crawl can retire resources outside that scope. These safeguards follow dbt Cloud behavior and do not change time-based cleanup.

Review cleanup settings before narrow filters or historical/exact-query imports. Choose the cleanup policy appropriate for the coverage you expect rather than treating a partial run as proof that omitted Snowflake resources no longer exist.

Troubleshooting

Symptom
Check

No visible dbt project objects

Configured role, parent USAGE, project MONITOR and project filters. Check privileges with the actual service connection.

Recent history works but Account Usage is not authorized

Ask your administrator to grant the separate history-view access; project MONITOR does not supply it.

Test succeeds but the source cannot download artifacts

Agent reachability to stage storage, provider permissions and actual file availability. Test checks listings, not payload transfer.

No usable execution or required artifacts

Completed eligible runs within 14 days, filters, selective-run policy, manifest/run-results availability and the five-candidate bound.

Missing catalog

Produce a docs catalog for the same object/target, enable borrowing, or deliberately allow a partial/missing catalog.

Agent disconnected or vault handle fails

Reconnect the selected agent or resolve the vault/handle error. There is no direct fallback.

dbt resources exist but expected table lineage is absent

Warehouse alignment advisory, Override Build Target, Snowflake Override Host URI, catalog entries and conflicting project/target identities.

Group failed while other groups imported

Inspect each group's reason and the cleanup policy; completion does not certify full project coverage.

Source fails on a completeness or artifact-size limit

Narrow the intended project scope or contact Euno support with the safe run report. Limits fail visibly instead of accepting truncated input.

Share run IDs, safe error classifications and redacted report details with support. Do not share private keys, passphrases, resolved vault values or signed storage URLs.

Last updated