I’m trying to figure out the problem here.
I’m getting this error, trying to deploy an Angular app on a Google Cloud.
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 :
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
Ok, I found the issue. I didn't change
yourprojectid
ingcloud app deploy --image-url us.gcr.io/yourprojectid/angular-nginx-container
Hope it will help somebody though.
Looks like your App Engine service account has the
Editor
role, however is the project ID correct? Based on the screenshot, the project ID isyourprojectid
should it be a different value?