【发布时间】:2022-12-20 20:06:04
【问题描述】:
我正在尝试连接 Public Cloud SQL 和 Data Fusion 实例,但最终收到 403 错误。
Failed to create connection to database via connection string: jdbc:postgresql:///analytics?cloudSqlInstance=chatbot-dev-356403:europe-central2:chatbot&socketFactory=com.google.cloud.sql.postgres.SocketFactory and arguments: {user=chatbot-dev}. Error: GoogleJsonResponseException: 403 Forbidden { "code" : 403, "errors" : [ { "domain" : "global", "message" : "The client is not authorized to make this request.", "reason" : "notAuthorized" } ], "message" : "The client is not authorized to make this request." }. Make sure you specify the correct connection properties.
我不确定这是否是权限问题。在数据融合实例创建期间,我在我的服务帐户中添加了以下权限:
roles/storage.admin
roles/datafusion.admin
roles/datafusion.runner
roles/datafusion.serviceAgent
roles/dataproc.worker
roles/cloudsql.admin
roles/cloudsql.client
我还可以在实例中看到另一个服务帐户,但不确定是否也必须向该帐户添加权限?
【问题讨论】:
标签: google-cloud-platform google-cloud-sql google-cloud-data-fusion