Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Cloud Run Deploy: PERMISSION_DENIED: The caller does not have permission.

I'm trying to get a Cloud Build trigger to auto deploy my service on any merge to main. I think I've following all the correct permissioning set up, but I still seem to be getting a PERMISSION_DENIED error:

Screenshot 2024-10-08 at 8.55.08 PM.png

As far as I can tell I should have all the correct permissions set up:

Screenshot 2024-10-08 at 8.57.32 PM.png

Screenshot 2024-10-08 at 8.58.18 PM.png

Screenshot 2024-10-08 at 8.55.54 PM.png

Here is my cloud build yaml:

steps:
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk:slim'
args:
- run
- deploy
- '${_SERVICE_NAME}'
- '--source'
- ./backend/
- '--region=${_DEPLOY_REGION}'
id: Deploy
entrypoint: gcloud
options:
substitutionOption: ALLOW_LOOSE
logging: CLOUD_LOGGING_ONLY
substitutions:
_DEPLOY_REGION: us-central1
_TRIGGER_ID: 764a92ae-0aef-494d-91e9-831fa0abf752
_SERVICE_NAME: monorepo
tags:
- gcp-cloud-build-deploy-cloud-run
- gcp-cloud-build-deploy-cloud-run-managed
- monorepo

 

0 0 297
0 REPLIES 0