IMPORTANT: Developer documentation for the current main branch. This content is unreleased and may change before the next Polaris release. For stable user documentation, see the latest release docs.

Creating a catalog on Google Cloud Storage (GCS)

For the polaris catalogs create command there are a few gcs-only options

--storage-type gcs
--service-account  (Only for GCS) The service account to use when connecting to GCS

example🔗

CLIENT_ID=root
CLIENT_SECRET=s3cr3t
DEFAULT_BASE_LOCATION=gs://my-ml-bucket/predictions/
SERVICE_ACCOUNT=serviceAccount:my-service-account@my-project.iam.gserviceaccount.com

polaris \
  --client-id "${CLIENT_ID}" \
  --client-secret "${CLIENT_SECRET}" \
  catalogs \
  create \
  --storage-type gcs \
  --service-account "${SERVICE_ACCOUNT}" \
  --default-base-location "${DEFAULT_BASE_LOCATION}" \
  my_gcs_catalog