profiles.yaml 中的 dbt Redshift IAM 凭据

dbt Redshift IAM credentials in profiles.yaml

我是 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

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

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

region=eu-west-1

浏览 implementation of the IAM feature,帮我找对地方了