我上传了一个模型
gcloud beta ai models upload --artifact-uri
在我访问的 docker 中AIP_STORAGE_URI
。我看到这AIP_STORAGE_URI
是另一个 Google 存储位置,所以我尝试使用下载文件,storage.Client()
但它说我无权访问:
google.api_core.exceptions.Forbidden: 403 GET https://storage.googleapis.com/storage/v1/b/caip-tenant-***-***-*-*-***?projection=noAcl&prettyPrint=false: custom-online-prediction@**.iam.gserviceaccount.com does not have storage.buckets.get access to the Google Cloud Storage bucket
我正在使用默认服务帐户运行此端点。
https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#artifacts
根据上面的链接:
The service account that your container uses by default has permission to read from this URI.
我究竟做错了什么?