I’m trying to use a Vertex AI endpoint I’ve wrapped in a Cloud Function, but keep running into issues when trying to make a BigQuery external connection to use it. Basically, I want to define the service account so everything (Vertex AI, Cloud Function, BQ) are running the same common service account. However, the only way I know how to define the actual service account is via gcloud bigquery connections
, which doesn’t seem like it works at this point. What next steps should I take? Otherwise, I continue to get issues when running a statement similar to:
CREATE OR REPLACE FUNCTION `project_id.output_dataset_us_central1.predict_label`(text STRING) RETURNS STRING REMOTE WITH CONNECTION `projects/project_id/locations/us-central1/connections/predict_label` OPTIONS ( endpoint = '<https://us-central1-project_id.cloudfunctions.net/predict_label>' );