Skip to main content

Managing Buckets

Buckets are created and managed through the Crusoe Cloud Console or CLI. They cannot be created or deleted through S3 client tools.

Bucket names must comply with the naming rules described in the Overview, including being globally unique across a Crusoe Cloud region and between 3–63 characters using only lowercase letters, numbers, and hyphens.

By default the buckets are only accessible by bucket owner via up to 2 Object Storage API keys.

Creating a Bucket

crusoe storage buckets create \
--name my-training-data \
--location us-east1-a

--name and --location are required. The bucket must be in the same location as the VMs that will access it.

Listing Buckets

crusoe storage buckets list

Optional filters:

  • --location <location> — Filter by location.
  • --tag key=<key>,value=<value> — Filter by tag.

Getting Bucket Details

crusoe storage buckets get my-training-data

This returns the bucket's metadata including versioning state, object lock configuration, tags, and used capacity.

Managing Bucket Tags

Add tags:

crusoe storage buckets add-tags my-training-data \
--tag key=environment,value=production \
--tag key=team,value=ml-infra

Remove tags:

crusoe storage buckets remove-tags my-training-data \
--tag key=environment,value=production

List tags:

crusoe storage buckets list-tags my-training-data

Enabling Versioning

Versioning preserves every version of every object in the bucket, protecting against accidental overwrites and deletions.

Warning

Once versioning is enabled, it cannot be disabled or suspended.

crusoe storage buckets enable-versioning my-training-data

Enabling Object Lock

Object lock protects objects from being deleted or overwritten for a specified retention period. Enabling object lock automatically enables versioning.

Warning

Once object lock is enabled on a bucket, it cannot be disabled, and versioning cannot be suspended.

crusoe storage buckets enable-locking my-training-data \
--retention 30d

The --retention flag accepts values like 7d (7 days) or 1y (1 year).

Deleting a Bucket

Warning

A bucket must be empty before it can be deleted. Deleting a bucket is a permanent action.

crusoe storage buckets delete --name my-training-data