-1

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.

Pax
  • 153
  • 1
  • 11

2 Answers2

1

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?

tHappy
  • 91
  • 8
  • I think it's correct. I tried to add it manually by copying the Project Id on the landing page of my project and it said, the user and role existed already. – Pax Sep 28 '22 at 20:14
0

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.

Pax
  • 153
  • 1
  • 11