I am attempting to create a model using gcloud but am running into an error with service account permissions that I can't figure out. The error I am get when I run this !gcloud ai-platform versions create $VERSION_NAME --model=$MODEL_NAME --origin $MODEL_DIR --region=$REGION_NAME --runtime-version=2.5 --framework $FRAMEWORK --python-version=3.7
is
Using endpoint [https://europe-west1-ml.googleapis.com/]
ERROR: (gcloud.ai-platform.versions.create) FAILED_PRECONDITION: Field: version.deployment_uri Error: The provided GCS prefix [gs://xxxxxxxxxxxxx/] cannot be read by service account service-xxxxxxxxxxxx@cloud-ml.google.com.iam.gserviceaccount.com.
- '@type': type.googleapis.com/google.rpc.BadRequest
fieldViolations:
- description: The provided GCS prefix [gs://xxxxxxxxxxxxx/] cannot be read by service account service-xxxxxxxxxxxx@cloud-ml.google.com.iam.gserviceaccount.com. field: version.deployment_uri
I have granted the following permissions to the service account but still getting the same error
- Storage Admin
- Storage Object Admin
- Storage Object Creator
- Storage Object Viewer