'Is it possible to request a Vertex AI endpoint from another GCP project?

I trained a model on GCP Vertex AI, and deployed it on an endpoint.

I am able to execute predictions from a sample to my model with this python code https://cloud.google.com/vertex-ai/docs/predictions/online-predictions-automl#aiplatform_predict_image_classification_sample-python

It works within my GCP project.

My question is, is it possible to request this endpoint from another GCP project ? If I set a service account and set IAM role in both projects ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source