skip to Main Content

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.

2

Answers


  1. Chosen as BEST ANSWER

    Ok, I found the issue. I didn't change yourprojectid in gcloud app deploy --image-url us.gcr.io/yourprojectid/angular-nginx-container

    Hope it will help somebody though.


  2. 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?

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search