google-cloud-platformgoogle-cloud-vertex-ai

GCP Vertex AI Service Agent access to GCR image Error


I am getting the below error. Does anyone have any idea how to solve it?

Failed to create pipeline job. Error: Vertex AI Service Agent 
'XXXXX@gcp-sa-aiplatform-cc.iam.gserviceaccount.com' should be granted
 access to the image gcr.io/gcp-project-id/application:latest

Solution

  • {PROJECT_NUMBER}@gcp-sa-aiplatform-cc.iam.gserviceaccount.com is google's AI Platform service agent. This Service agent requires access to read/pull the docker image from your project's gcr to create container for pipeline run.

    If You have permission to edit IAM roles, You can try adding Artifact Registry roles to the above service agent. You can start with adding roles/artifactregistry.reader.

    Hope this helps :)