gpt4 book ai didi

google-cloud-platform - Terraform - GCP - 连接 : connection refused

转载 作者:行者123 更新时间:2023-12-02 02:09:22 25 4
gpt4 key购买 nike

上周一切正常。但是今天当我再次运行 terraform apply 时,我的所有资源都出现以下错误:

错误:发布“https://storage.googleapis.com/storage/v1/b?alt=json&prettyPrint=false&project=PROJECTID”:调用 tcp SOMEIPTHATCANTSHARE:443:连接:连接被拒绝

我必须:

  • 创建 BigQuery 数据集和表。

  • 创建桶

我尝试“gcloud auth login”和“gcloud auth application-default login”

我必须遵循以下信息:

UserWarning: Your application has authenticated using end user credentials from Google Cloud SDK without a quota project. You might receive a "quota exceeded" or "API not enabled" error. We recommend you rerun \gcloud auth application-default login` and make sure a quota project is added. Or you can use service accounts instead. For more information about service accounts, see[https://cloud.google.com/docs/authentication/](https://cloud.google.com/docs/authentication/).. warnings.warn(_CLOUD_SDK_CREDENTIALS_WARNING)`

Cannot add the project "A PROJECT FROM ANOTHER GOOGLE CLOUD ACCOUNT" to ADC as the quota project because the account in ADC does not have the "serviceusage.services.use" permission on this project. You might receive a "quota_exceeded" or "API not enabled" error. Run $ gcloud auth application-default set-quota-project to add a quota project.```

最佳答案

这个回答是对@DazWilkin 的回答的赞美。

Your application has authenticated using end user credentials fromGoogle Cloud SDK without a quota project

此警告消息表示您正在使用 Google 用户凭据(Gmail、Workplace 等)而不是服务帐户来访问 Google Cloud API。由于您使用的是用户凭据,Google Cloud 不知道如何管理各种配额,因为未设置默认项目。这些配额是特定于项目的。

设置配额项目:

gcloud auth application-default set-quota-project PROJECT_ID

PROJECT_ID 是将检查其配额并授予/拒绝权限的项目。

注意:在运行 set-quota-project 命令之前,必须初始化应用程序默认凭据。

gcloud auth application-default login

关于google-cloud-platform - Terraform - GCP - 连接 : connection refused,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67922290/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com