dbt Redshift profile .yaml中的IAM凭据



我是dbt的新手,正在尝试入门。我已经设法配置配置文件。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配置中设置正确的区域。当我们使用aws-azure-login时,这个设置对我的日常登录没有影响

region=eu-west-1

查看IAM功能的实现,帮助我找到了正确的位置

最新更新