我正在尝试将Node.js应用程序部署到Google Cloud上,但遇到以下错误 -
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.
我正在运行以下命令 -
gcloud builds submit . --config cloudbuild.yaml
我的cloudbuild.yaml文件如下所示 -
steps:
#install
- name: 'gcr.io/cloud-builders/npm'
args: ['install']
#deploy
- name: 'gcr.io/cloud-builders/gcloud'
args: ['app', 'deploy']
gcloud app deploy
和App Engine Deployer
权限之外,您不需要任何其他东西。将Cloud Build与App Engine Admin一起保留是可以的,因为这是由Google控制的安全服务。 - John Hanley