[英]How to add GCP IAM roles to Service Account
我正在尝试使用docker-machine
在 GCP 上的 VM 实例上创建一个 docker swarm 节点。
docker-machine create swarm-node -d google --google-machine-type e2-standard-2 --google-zone europe-north1-a --google-project myproject-name
我在 localhost docker-machine CLI 中使用 GCP 服务帐户。
export GOOGLE_APPLICATION_CREDENTIALS="/home/my-name-here/.gcp/path-to-my-service-account-keyfile.json"
但我收到了这个错误:
Error with pre-create check: "Project with ID \"myproject-name\" not found. googleapi: Error 403: Required 'compute.projects.get' permission for 'projects/myproject-name', forbidden"
如何将compute.projects.get
GCP IAM 访问权限添加到 GCP 服务帐户?
最后我想通了,如解释: https : //cloud.google.com/iam/docs/granting-changed-revoking-access
Compute Admin
等等
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.