Getting this error when trying to deploy a Cloud Run Service using an image from another project on same organization.
" Google Cloud Run Service Agent must have permission to read the image, gcr.io/my-builds/consultoriaweb@sha256:8c655b2bab..... Ensure that the provided container image URL is correct and that the above account has permission to access the image. If you just enabled the Cloud Run API, the permissions might take a few minutes to propagate. Note that the image is from project [my-builds], which is not the same as this project [my-webapp]. Permission must be granted to the Google Cloud Run Service Agent from this project. "
I am selecting the image to deploy from container registry on my-builds project using Google Console web interface.
Already added IAM permission on [my-builds] project, tried both:
[my-webapp-project-number]-compute@developer.gserviceaccount.com => role Compute Image User
[my-webapp-project-number]@cloudservices.gserviceaccount.com => role Compute Image User
Google documentation says that I should just give roles/compute.imageUser role to:
[my-webapp-project-number]@cloudservices.gserviceaccount.com on my-builds project, but I can't get it to work.
Google documentation to Using Images from Other Projects, but I don't know if it applies to Cloud Run. https://cloud.google.com/deployment-manager/docs/configuration/using-images-from-other-projects-for-vm-instances#granting_access_to_images
Thanks in advance for any help on that