google-cloud-platform - 缺少对 "billingAccounts/XXXXXXXXXXXXXXXXXXXXXXXX": billing. resourceAssociations.create Terraform (GCP) 的权限

标签 google-cloud-platform terraform terraform-provider-gcp

我尝试使用 Terraform 在 GCP 上自动创建共享 VPC。我已启用对我的服务帐户的所有访问权限(Org Admin、XpnAdmin、Storage Admin、Compute admin、Billing Admin)

但是当我执行 terraform apply 时,它会抛出以下错误:

missing permission on "billingAccounts/CXXXXXXXXXXXXXXXXXX": billing.resourceAssociations.create



我指的是 Google 提供商 Github code对于这个演示。

最佳答案

您很可能拥有计费管理员,但您还需要能够创建计费分配或“计费项目经理”。

https://cloud.google.com/billing/v1/how-tos/access-control

billing.resourceAssociations.create AND resourcemanager.projects.createBillingAssignment on the Cloud Billing account.



有一些方便的代码来引导服务帐户 - Google Project Factory - 你可能想看看那个。一旦创建了 SA,你就不应该有权限问题

关于google-cloud-platform - 缺少对 "billingAccounts/XXXXXXXXXXXXXXXXXXXXXXXX": billing. resourceAssociations.create Terraform (GCP) 的权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61053649/

相关文章:

python - Google Document Ai 为同一文件提供不同的输出

terraform - 如何将变量传递给 heml.tf 中的 yaml 文件?

azure-devops - 使用 terraform -out 参数

postgresql - 如何在 terraform 中使用 docker image 和 postgres DB 在 azure 中设置 sonarqube

kubernetes - 通过常见的Kibana UI监视来自多个Kubernetes集群的Pod日志(使用GCP和Kops)

java - 如何使用 maven 更改在 GAE 中上传的项目?

bash - 在 Terraform 中创建随机变量并将其传递给 GCE 启动脚本

google-cloud-platform - 如何在 terraform 中正确创建具有角色的 gcp 服务帐户

node.js - GCP Cloud 构建忽略超时设置

google-cloud-platform - 在 GCP 中创建 IAM 成员会引发错误策略大小太大