Empezar con S3 Object Storage (EN)

Last updated 21st July 2022


This guide aims to familiarise you with the management of your containers / objects.



User management

Once your user has been created with ObjectStore operator role or with Administrator role, you must generate its S3 credentials.

User menu

Be sure to save the access and secret keys shown in the green message box to a password manager at this time.


Bucket management

Creating a bucket from the customer Control Panel

It is not possible to create a Public Cloud Archive bucket.

Log in to the OVHcloud Control Panel and switch to the Public Cloud section. Select Object Storage in the left hand menu, then click Create an object container

If this is your first bucket, you should be displayed the following:

pcs dashboard

If this is not your first bucket:

pcs dashboard

Select the High Performance solution and click Next.

Select High Performance Solution

Select the region of your bucket and click Next.

Select a region

Name your bucket and click Create the container.

Container name

  • Bucket names can be between 3 and 63 characters long.
  • Bucket names can only be lowercase letters, numbers, full stops (.) and hyphens (-).
  • Bucket names must begin and end with a letter or number.
  • Bucket names must not use the same format as IP addresses (e.g.
  • Bucket names must be unique within a region.

Binding a user to a bucket

At this stage, you can not interact with your bucket because no S3 user is associated with it.

Click on the ... at the end of the line of your bucket and then Add a user to a container.

Add a user to a container

Select the user to add to your bucket and click Next.

Add a user to my container

Define access to your bucket for this user and click Next.

Add a user to my container - Role

Managing objects

Click on the ... at the end of the line of your bucket and then on Display objects.

Object Storage Dashboard

Click on + Add objects.

Add objects

If needed, set a prefix, click Select files then Import.

Select files

You can now interact with your object.

Object actions

Using the AWS CLI


user@host:~$ pip3 install awscli awscli-plugin-endpoint

awscli-plugin-endpoint is optional
Install the groff package if you want to use the command line help


Configure the aws client as follows:

user@host:~$ cat ~/.aws/credentials

aws_access_key_id = <access_key>
aws_secret_access_key = <secret_key>

user@host:~$ cat ~/.aws/config

# Delete the next two lines if you don't installed `awscli-plugin-endpoint`
endpoint = awscli_plugin_endpoint

[profile default]
region = <region_in_lowercase>
s3 =
  endpoint_url = https://s3.<region_in_lowercase>.perf.cloud.ovh.net
  signature_version = s3v4
s3api =
  endpoint_url = https://s3.<region_in_lowercase>.perf.cloud.ovh.net

You can also use interactive configuration by running the following command: aws --configure

Here are the configuration values you can specifically set:

Variable Type Value Definition
max_concurrent_requests Integer Default: 10 The maximum number of simultaneous requests.
max_queue_size Integer Default: 1000 The maximum number of jobs in the job queue.
multipart_threshold Integer
Default: 8MB The size threshold that the CLI uses for multipart transfers of individual files.
multipart_chunksize Integer
Default: 8MB
Minimum for uploads: 5MB
When using multipart transfers, this is the chunk size that the CLI uses for multipart transfers of individual files.
max_bandwidth Integer Default: None The maximum bandwidth that will be consumed for uploading and downloading data to and from your buckets.
verify_ssl Boolean Default: true Enable / Disable verification of SSL certificates


If you don't have awscli-plugin-endpoint installed, you must add --endpoint-url https://s3.<region_in_lowercase>.perf.cloud.ovh.net to the command line.

If you have defined multiple profiles, add --profile <profile> to the command line.

Create a bucket

aws s3 mb s3://<bucket_name>
aws --endpoint-url https://s3.<region_in_lowercase>.perf.cloud.ovh.net --profile default s3 mb s3://<bucket_name>

List your buckets

aws s3 ls

Upload your files as objects into your bucket

aws s3 cp /datas/test1 s3://<bucket_name>

By default, objects are named after the files, but they can be renamed.

aws s3 cp /datas/test1 s3://<bucket_name>/other-filename

Downloading an object from a bucket

aws s3 cp s3://<bucket_name>/test1 .

Download an object from one bucket to another bucket

aws s3 cp s3://<bucket_name>/test1 s3://<bucket_name_2>

Download or upload an entire bucket to the host/bucket

aws s3 cp s3://<bucket_name> . --recursive
aws s3 cp s3://<bucket_name> s3://<bucket_name_2> --recursive

Synchronization of buckets

aws s3 sync . s3://<bucket_name>
aws s3 sync s3://<bucket_name> s3://<bucket_name_2>

Deleting objects and buckets

# Deleting an object
aws s3 rm s3://<bucket_name>/test1
# Delete all objects in a bucket
aws s3 rm s3://<bucket_name> --recursive
# Deleting a storage area. To delete a bucket, it must be empty.
aws s3 rb s3://<bucket_name>
# If the bucket is not deleted, you can use the same command with the --force option.
# This command deletes all objects in the bucket, then deletes the bucket.
aws s3 rb s3://<bucket_name> --force

Setting tags on a bucket

aws s3api put-bucket-tagging --bucket <bucket_name> --tagging 'TagSet=[{Key=myKey,Value=myKeyValue}]'
aws s3api get-bucket-tagging --bucket <bucket_name>
  "TagSet": [
    "Value": "myKeyValue",
    "Key": "myKey"

Removing tags from a bucket

aws s3api s3api delete-bucket-tagging --bucket <bucket_name>

Define tags on an object

aws s3api put-object-tagging --bucket <bucket_name> --key test1 --tagging 'TagSet=[{Key=myKey,Value=myKeyValue}]'
aws s3api get-bucket-tagging --bucket <bucket_name>
  "TagSet": [
    "Value": "myKeyValue",
    "Key": "myKey"

Removing tags from an object

aws s3api s3api delete-object-tagging --bucket <bucket_name> --key test1

Go further

Join our community of users on https://community.ovh.com/en/.

¿Le ha resultado útil esta guía?

Si lo desea, también puede enviarnos sus sugerencias para ayudarnos a mejorar nuestra documentación.

Imágenes, contenido, estructura...: ayúdenos a mejorar nuestra documentación con sus sugerencias.

No podemos tratar sus solicitudes de asistencia a través de este formulario. Para ello, haga clic en "Crear un tíquet" .

¡Gracias! Tendremos en cuenta su opinión.

Otras guías que podrían interesarle...

OVHcloud Community

¡Acceda al espacio de la OVHcloud Community! Resuelva sus dudas, busque información, publique contenido e interactúe con otros miembros de la comunidad.

Discuss with the OVHcloud community

A partir del 1 de enero de 2015, con arreglo a la Directiva 2006/112/CE modificada, los precios IVA incluido pueden variar según el país de residencia del cliente (por defecto, los precios con IVA incluyen el IVA español vigente).