Skip to main content
Most ML/AI workloads involve large files, such as datasets and artifacts of trained models. To efficiently store, access and share them, you can use Object Storage, a simple storage service offered by Nebius AI Cloud. In this guide, you will learn how to start using Object Storage. You will set up your environment to work with Object Storage, create your first bucket, a data container, and upload a test file.

Prepare your environment

Make sure that you meet the prerequisites for your preferred interface:
Make sure you are in a group that has at least the editor role within your tenant; for example, the default editors group. You can check this in the Administration → IAM section of the web console.

Configure access, credentials and AWS CLI settings

If you are using the web console, you can skip this step and proceed to creating a bucket.
  1. Create a service account and save its ID to an environment variable:
    export NB_SA_ID=$(nebius iam service-account create \
      --name object-storage-sa --format json \
      | jq -r '.metadata.id')
    
  2. Grant edit access to the service account:
    1. Get the tenant ID:
      export NB_PROJECT_ID=$(nebius config get parent-id)
      export NB_TENANT_ID=$(nebius iam project get $NB_PROJECT_ID --format jsonpath='{.metadata.parent_id}')
      
    2. Get the ID of the default editors group:
      export NB_EDITORS_GROUP_ID=$(nebius iam group get-by-name \
        --name editors --parent-id $NB_TENANT_ID \
        --format jsonpath='{.metadata.id}')
      
    3. Add the service account to editors group:
      nebius iam group-membership create \
        --parent-id $NB_EDITORS_GROUP_ID \
        --member-id $NB_SA_ID
      
  3. Create an access key for the service account and get its AWS-like ID and contents:
    export NB_ACCESS_KEY_ID=$(nebius iam access-key create \
      --account-service-account-id $NB_SA_ID \
      --description 'AWS CLI' \
      --format json | jq -r '.resource_id')
    export NB_ACCESS_KEY_AWS_ID=$(nebius iam access-key get-by-id \
      --id $NB_ACCESS_KEY_ID \
      --format json | jq -r '.status.aws_access_key_id')
    export NB_SECRET_ACCESS_KEY=$(nebius iam access-key get-secret-once \
      --id $NB_ACCESS_KEY_ID --format json \
      | jq -r '.secret')
    
  4. Add the key to the AWS CLI configuration:
    aws configure set aws_access_key_id $NB_ACCESS_KEY_AWS_ID
    aws configure set aws_secret_access_key $NB_SECRET_ACCESS_KEY
    
  5. Depending on your project region, add the Nebius AI Cloud region ID and the Object Storage endpoint URL to the AWS CLI configuration:
    aws configure set region <region_ID>
    aws configure set endpoint_url https://storage.<region_ID>.nebius.cloud
    
    For example, run the following commands for a project in eu-north1:
    aws configure set region eu-north1
    aws configure set endpoint_url https://storage.eu-north1.nebius.cloud
    

Create a bucket and upload a file to it

In Object Storage, a bucket is a container for objects. An object, in turn, is a file together with its metadata such as the file name (it is called object key in Object Storage terms). You can use the web console or the AWS CLI to create buckets and upload objects.
  1. Create a bucket:
    1. In the sidebar, go to https://mintcdn.com/nebius-ai-cloud/1Ha0sWR6e1mnIaHS/_assets/sidebar/storage.svg?fit=max&auto=format&n=1Ha0sWR6e1mnIaHS&q=85&s=0a2dad6b48aea10e85f6f3e2343aee26 StorageObject Storage.
    2. Click https://mintcdn.com/nebius-ai-cloud/1Ha0sWR6e1mnIaHS/_assets/plus.svg?fit=max&auto=format&n=1Ha0sWR6e1mnIaHS&q=85&s=7c9efc69d65fc58db0eb73702fd81aa1 Create bucket.
    3. (Optional) Specify the bucket name. The bucket name must be unique across the region. For more information, see Naming.
    4. Set the bucket parameters.
    5. Click Create bucket.
  2. Upload a file to the bucket:
    1. On the page of the bucket, click Add https://mintcdn.com/nebius-ai-cloud/1Ha0sWR6e1mnIaHS/_assets/chevron-down.svg?fit=max&auto=format&n=1Ha0sWR6e1mnIaHS&q=85&s=e3ec12ce62b3c2e03427533b780997f0.
    2. Select Object.
    3. In the window that opens, select the file you want to upload.
    4. Click Upload.
    5. Check that the Objects tab shows the new object.