我正在尝试在谷歌云上部署 node js 应用程序,但出现以下错误 -
Step #1: ERROR: (gcloud.app.deploy) Permissions error fetching application [apps
/mytest-240512]. Please make sure you are using the correct project ID and that
you have permission to view applications on the project.
Run Code Online (Sandbox Code Playgroud)
我正在运行以下命令 -
gcloud builds submit . --config cloudbuild.yaml
Run Code Online (Sandbox Code Playgroud)
我的 cloudbuild.yaml 文件看起来像 -
steps:
#install
- name: 'gcr.io/cloud-builders/npm'
args: ['install']
#deploy
- name: 'gcr.io/cloud-builders/gcloud'
args: ['app', 'deploy']
Run Code Online (Sandbox Code Playgroud) google-cloud-platform gcloud google-cloud-iam google-cloud-build
我正在尝试按照本指南使用非默认服务帐户部署服务,它说我需要“iam.serviceAccounts.actAs正在部署的服务帐户的权限”。我使用的服务帐户是@cloudbuild.gserviceaccount.com,但我在项目的“权限”页面上看不到添加它的选项。
service-accounts google-cloud-platform google-iam google-cloud-iam