Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

dbt-projects-snowflake-setup

БесплатноБез исполняемых скриптовНе проверен

Step-by-step setup guide for dbt Projects on Snowflake including prerequisites, external access integration, Git API integration, event table configuration…

sfc-gh-dflippoот sfc-gh-dflippo★ 35 звёзд на GitHub13 установок в других каталогах

Об этом скилле

dbt Projects on Snowflake Setup

Complete step-by-step guide for setting up dbt Projects on Snowflake from beginning to end.

When to Use This Skill

Activate this skill when users ask about:

  • Setting up dbt Projects on Snowflake for the first time
  • Configuring external access integrations for dbt packages
  • Setting up Git API integrations (GitHub, GitLab, Azure DevOps)
  • Creating workspaces in Snowsight
  • Configuring event table monitoring for dbt Projects
  • Scheduling automated dbt runs with Snowflake Tasks
  • Troubleshooting dbt Projects setup issues

Prerequisites

1. Snowflake Account

  • Account with ACCOUNTADMIN permissions for initial setup
  • Personal database enabled (default for new accounts)

2. Git Repository

  • GitHub, GitLab, or Azure DevOps repository
  • Personal Access Token (PAT) for authentication

Setup Steps

Step 1: Enable Personal Database

ALTER ACCOUNT SET ENABLE_PERSONAL_DATABASE = TRUE;

Step 2: Create External Access Integration

For dbt deps to work, allow external access to dbt packages:

-- Create NETWORK RULE
CREATE OR REPLACE NETWORK RULE dbt_network_rule
  MODE = EGRESS
  TYPE = HOST_PORT
  VALUE_LIST = (
    'hub.getdbt.com',
    'codeload.github.com'
  );

-- Create EXTERNAL ACCESS INTEGRATION
CREATE OR REPLACE EXTERNAL ACCESS INTEGRATION dbt_ext_access
  ALLOWED_NETWORK_RULES = (dbt_network_rule)
  ENABLED = TRUE;

Purpose: Allows dbt to download packages from hub.getdbt.com and GitHub during dbt deps execution.


Step 3: Create Git API Integration

Choose the appropriate integration for your Git provider:

GitHub

CREATE OR REPLACE API INTEGRATION git_api_integration
  API_PROVIDER = git_https_api
  API_ALLOWED_PREFIXES = (
    'https://github.com/',
    'https://github.com/organization/'
  );

GitLab

CREATE OR REPLACE API INTEGRATION git_api_integration
  API_PROVIDER = git_https_api
  API_ALLOWED_PREFIXES = (
    'https://gitlab.com/'
  );

Azure DevOps

CREATE OR REPLACE API INTEGRATION git_api_integration
  API_PROVIDER = git_https_api
  API_ALLOWED_PREFIXES = (
    'https://dev.azure.com/'
  );

Purpose: Allows Snowflake to connect to your Git repository for workspace creation and project deployment.


Step 4: Create Workspace in Snowsight

  1. Navigate to Projects → My Workspace
  2. Click My Workspace → Create Workspace → From Git repository
  3. Enter:
    • Repository URL
    • API integration name (git_api_integration)
    • Authentication (PAT or OAuth)

Note: Workspace creation is only available through the Snowsight UI. The Snowflake CLI does not have commands for creating workspaces.


Step 5: Configure profiles.yml

In your workspace, configure profiles.yml:

my_dbt_project:
  target: dev
  outputs:
    dev:
      type: snowflake
      account: "" # Uses current account context
      user: "" # Uses current user context
      warehouse: MY_WAREHOUSE
      database: MY_DATABASE
      schema: MY_SCHEMA
      role: MY_ROLE

Important Notes:

  • Leave account and user empty - Snowflake provides these automatically
  • Specify your warehouse, database, schema, and role
  • For multiple environments, add additional outputs (staging, prod)

Step 6: Deploy as DBT PROJECT Object

UI Method:

  • Use the Deploy button in workspace

CLI Method:

snow dbt deploy my_project --source .

Verify Deployment:

SHOW DBT PROJECTS IN DATABASE MY_DATABASE;

Check and pin supported dbt versions

Before deploying, confirm which dbt versions the Snowflake managed runtime supports:

-- List the dbt versions supported by dbt Projects on Snowflake (Fusion + Core)
SELECT SYSTEM$SUPPORTED_DBT_VERSIONS();

SYSTEM$SUPPORTED_DBT_VERSIONS() returns the live list including engine type — run it rather than relying on a hardcoded number, since preview builds advance over time.

The DBT_VERSION attribute implicitly selects the engine:

  • < 2.0 (e.g. 1.11.11) → dbt Core (Python engine)
  • ≥ 2.0 (e.g. 2.0.0-preview.186) → dbt Fusion (Rust engine)
-- Set an account-wide default (a DBT_VERSION >= 2.0 selects the dbt Fusion engine)
ALTER ACCOUNT SET DEFAULT_DBT_VERSION = '2.0.0-preview.186';

-- Pin a project to a specific version at creation
CREATE OR REPLACE DBT PROJECT my_dbt_project
  FROM '@my_stage/dbt_files'
  DBT_VERSION = '2.0.0-preview.186';

-- Change an existing project's version
ALTER DBT PROJECT my_dbt_project SET DBT_VERSION = '2.0.0-preview.186';

Per-execution override (without changing the project definition):

EXECUTE DBT PROJECT my_db.my_schema.my_dbt_project
  DBT_VERSION = '2.0.0-preview.186'
  args='build';

Snowflake keeps versions supported even after dbt Labs deprecates them, so you are not forced into immediate upgrades.


Event Table Monitoring Configuration (Optional but Recommended)

Monitor dbt Projects exec

Полный SKILL.md на GitHub

Установить dbt-projects-snowflake-setup в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл dbt-projects-snowflake-setup?

Step-by-step setup guide for dbt Projects on Snowflake including prerequisites, external access integration, Git API integration, event table configuration, and automated scheduling. Use this skill when setting up dbt Projects on Snowflake for the first time or troubleshooting setup issues.

Как установить скилл dbt-projects-snowflake-setup?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл dbt-projects-snowflake-setup запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить dbt-projects-snowflake-setup с