【问题标题】:dbt Redshift IAM credentials in profiles.yamlprofile.yaml 中的 dbt Redshift IAM 凭证
【发布时间】:2021-09-08 15:56:49
【问题描述】:

我是 dbt 的新手,正在尝试开始。我已设法配置profiles.yml 以匹配Redshift IAM 身份验证配置文件,但在运行dbt debug 之后,会出现以下错误-

 >Database Error
  Unable to get temporary Redshift cluster credentials: An error occurred (ClusterNotFound) when calling the GetClusterCredentials operation: Cluster cluster_zzz not found.

但是,我可以使用确切的 IAM 配置从 DataGrip 中正常连接。

我关注的 dbt 文档 - https://docs.getdbt.com/reference/warehouse-profiles/redshift-profile

profiles.yml

risk:
  target: dev
  outputs:
    dev:
      type: redshift
      method: iam
      cluster_id: cluster_zzz
      host: cluster_zzz.d4dcyl2bbxyz.eu-west-1.redshift.amazonaws.com
      user: dbuser
      iam_profile: risk
      iam_duration_seconds: 900
      autocreate: true
      port: 5439
      dbname: db_name
      schema: dbname_schema
      threads: 1
      keepalives_idle: 0

感谢任何帮助,因为它可以帮助我继续评估该工具。谢谢!

【问题讨论】:

    标签: dbt


    【解决方案1】:

    我设法找到了问题。我必须在我的 aws 配置中设置正确的区域。由于我们使用的是 aws-azure-login,因此此设置对我的日常登录无关紧要

    region=eu-west-1

    翻阅implementation of the IAM feature,帮我找对地方了

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-01-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-01-16
      • 1970-01-01
      相关资源
      最近更新 更多