Search code examples
angulargoogle-cloud-platformgoogle-cloud-build

(gcloud.app.deploy): Error Response: The App Engine appspot and App Engine flexible environment service accounts must have permissions on the image


I'm trying to figure out the problem here. I'm getting this error, trying to deploy an Angular app on a Google Cloud. Error Deploy

I'm following the procedure here : https://cloud.google.com/community/tutorials/appengine-angular-nginx-docker

I checked the post here but I doesn't help me : ERROR: (gcloud.app.deploy): The App Engine appspot and App Engine flexible environment service accounts must have permissions on the image

Here is my IAM :

enter image description here

And my app.yaml file :

runtime: custom
env: flex
service: default
threadsafe: true

env_variables:
  API_URL: "https://webapi-dev.appname.com"

I don't see why it's not regarding the error log and the role attributed.


Solution

  • Looks like your App Engine service account has the Editor role, however is the project ID correct? Based on the screenshot, the project ID is yourprojectid should it be a different value?