![](/img/trans.png)
[英](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.