如何使用DBT使用sso身份验证与雪花连接

时间:2020-07-21 12:08:51

标签: snowflake-cloud-data-platform snowflake-schema snowflake-task dbt

我正在尝试使用具有SSO身份验证机制的DBT与雪花连接。为此,应打开一个外部浏览器窗口以传递证书。为了与雪花连接,我如下构建profile.yml文件

test_dbt_snowflake:
  target: dev
  outputs:
    dev:
      type: snowflake
      account: ****.east-us-2.azure
      user: ****
      role: sysadmin

      # SSO config
      authenticator: externalbrowser

      database: tgt
      warehouse: compute_wh
      schema: tgt_schema
      threads: 1
      client_session_keep_alive: False

但是当我尝试连接时会出现以下错误

Running with dbt=0.17.0
For upgrading instructions, consult the documentation:
  https://docs.getdbt.com/docs/guides/migration-guide/upgrading-to-0-17-0
Found 1 model, 0 tests, 0 snapshots, 0 analyses, 136 macros, 0 operations, 0 seed files, 0 sources

Initiating login request with your identity provider. A browser window should have opened for you to complete the login. If you can't see it, check existing browser windows, or your OS settings. Press CTRL+C to abort and try again...
Encountered an error:
Runtime Error
  Database error while listing schemas in database "tgt"
  Database Error
    390190 (08001): Failed to connect to DB: *****.east-us-2.azure.snowflakecomputing.com:443, There was an error related to the SAML Identity Provider account parameter. Contact Snowflake support.

0 个答案:

没有答案