The SDK does not pick up the correct user project when running on Vertex Pipelines or CustomJobs #852
Labels
api: aiplatform
Issues related to the AI Platform API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
Usually the Vertex SDK gets the project ID automatically (by calling
google.auth.default()
). This works when running on Kubeflow Pipelines.However when running on Vertex Pipelines or CustomJobs, the detected project is not the user project and is not usable.
This leads to failure when trying to create any resource in the project:
Fortunately there is a way to get project number from the Vertex environment. There is also a way to get project ID from the project number.
Deducing project number
Getting project ID:
Perhaps we should improve the Vertex SDK initializer to use the project mentioned in
CLOUD_ML_PROJECT_ID
if it's available by default.The text was updated successfully, but these errors were encountered: