[英](GCP, Terraform) Error creating service account: googleapi: Error 403: Permission iam.serviceAccounts.create is required to perform this operation on
[英]iam.serviceAccounts.getIamPolicy is required to perform this operation on service account
来自: https : //cloud.google.com/iam/docs/granting-roles-to-service-accounts
运行此命令:
gcloud iam service-accounts get-iam-policy \
mysa@my-project.iam.gserviceaccount.com
我得到:
gcloud iam service-accounts get-iam-policy mysa@my-project.iam.gserviceaccount.com
ERROR: (gcloud.iam.service-accounts.get-iam-policy) PERMISSION_DENIED: Permission iam.serviceAccounts.getIamPolicy is required to perform this operation on service account projects/-/serviceAccounts/mysa@my-project.iam.gserviceaccount.com
但是我对当前用户(角色所有者)有iam.serviceAccounts.getIamPolicy
权限?
问题出在项目的电子邮件成员(服务帐户电子邮件)上 - 在 IAM 用户中。
当我在 IAM 中删除这个(SA 成员)时,结果给出了“etag:ACAB”。
我需要弄清楚那是什么,但它起作用了。 刚发现这个
这个帐户应该在删除服务帐户时自动删除 - 但我知道什么:-)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.