Skip to content

Cloud Storage

LightlyStudio Enterprise lets admins configure cloud storage credentials centrally. Once set up, every Python client that calls ls.connect() receives the credentials automatically, no per-user setup is needed. Cloud storage is read-only, LightlyStudio will not write any data to your buckets or need write permissions.

Currently supported: AWS S3. Support for GCS and Azure is planned.

How It Works

  1. Admin creates cloud provider credentials with read access to the storage bucket. See AWS S3 Setup for a step-by-step guide.
  2. Admin saves the credentials in the LightlyStudio Enterprise GUI.
  3. Python clients call ls.connect() and receive the credentials automatically.

Step 1: Get Your Cloud Credentials

Follow the guide for your cloud provider to create credentials with the required permissions:

Step 2: Add Credentials in the GUI

  1. Open your LightlyStudio Enterprise instance in the browser.
  2. Go to the Datasets page and click the Cloud Storage Credentials button. This button is only visible to admins.
  3. Enter the Access Key ID and Secret Access Key you created in the previous step.
  4. Click Save Credentials.

Cloud Storage Credentials dialog

The credentials are now stored on the server and shared with all Python client connections.

Step 3: Use Cloud Storage from Python

If you have not set up Python access yet, start with Connect from Python. After calling ls.connect(), cloud credentials are injected into your local environment automatically, so you can use remote paths directly without any extra client-side setup.

enterprise_cloud_storage.py
import lightly_studio as ls

ls.connect()

dataset = ls.ImageDataset.load_or_create("s3_dataset")
dataset.add_images_from_path(path="s3://my-bucket/images/")

Note

The Python client must have the cloud storage dependencies installed:

pip install "lightly-studio[cloud-storage]"
See Using Cloud Storage for more details on supported cloud operations.