How to get started with S3 Cloud4y using AWS Command Line Interface (CLI)

1) Install AWS CLI

- On Windows, load AWSCLI-64 or AWSCLI-32 bit installer for Windows and set it as default.

- On Mac and Linux

Requires Python 2.6.5 or later, and Python Package Installer. 

After that, we set it up with a command.

pip install awscli

After installation, in the console, with the command aws --version check the installed version of   

2) Profile setting

You can access the administration panel of the service at using your credentials received from Cloud4Y technical support after purchasing the service or from your S3 administrator.

In the Administration panel, in the properties of the profile we find out and remember (write down) ACCESS KEY ID, SECRET KEY

To work, we need to configure our profile, we can use it as a global profile, then use the aws configure command or a dedicated command.

In the example below, we will create an additional one named demo-s3. Let's enter the command

aws configure --profile demo-s3

and enter the data requested by the system:

-AWS Access Key ID: (7683ed31dcXXXXXXXXX)


-Default region name: DC1

-Default output format: json


The output parameters can be of the following types:





I chose json.

We can set the created profile by default, and we will do so:


For the changes to come into effect, the console must be restarted. 


The profile configuration files themselves are located on the Windows system in the folder: C:\Users\ИМЯ_ПОЛЬЗОВАТЕЛЯ\.aws.

3) Start working with S3

To connect, we need to specify a connection point, endpoint-url, it can take the following values:



3.1 Get the list of buckets with the list-buckets.

a) With a specific profile:

aws s3api list-buckets -endpoint-url --profile demo-s3

b) With default profile:

aws s3api list-buckets -endpoint-url

We have created a profile with JSON, but we can change this by specifying additionally --output, for example:

aws s3api list-buckets --endpoint-url --output text

If you get an error when running the command: Unable to locate credentials. You can configure credentials by running "aws configure" then you should check your profile settings and the correctness of the data entered.

3.2 Let's create a bucket using the create-bucket.

aws s3api create-bucket -endpoint-url --bucket demo-s3-bucket --acl public-read

As an access rights list (acl), there can be values:





Please note that to access the bucket, you must use the URI, NOT the FQDN

3.3 Let's upload the file to the created bucket using the put-object command. 

aws s3api put-object -endpoint-url --bucket demo-s3-bucket --key my-video-file.mp4 --body C:\Upload\my-video-file.mp4 

After downloading, we will get this result:

All these actions, we can also perform/verify in the control panel

We work in the same way with other commands, see the detailed information.

Have you tried Virtual cloud servers by Cloud4Y? Not yet? 


Leave a request and get a 10-day free trial. 


Смотреть подробности   
  • S3, Объектноехранилище, objectstores3, storage, object storage, cloudian, cloud storage, cloud
  • 105 Users Found This Useful
Was this answer helpful?

Related Articles

How to start working with the object storage

CLOUD4Y OBJECTIVE STORAGE Our object storage is built on Cloudian platform and supports Amazon...

4.Способы работы с объектным хранилищем через различное программное обеспечение

Подготовка идентификационных данных 1. Авторизуйтесь в объектном хранилище Cloud4Y:...

5.Работа с S3 средствами AWS SDK Client на php

0. Устанавливаем php Инструкция здесь 1. Установим composer Переходим в директорию из...

Access to S3 from the VCD cloud dashboard

The VMware vCloud Director® Object Storage Extension™ plug-in enables Cloud4y users to access...

7. Биллинг в системе объектного хранилища S3

  Биллинг в S3 учитывает в себе следующие параметры: Занимаемое место Количество GET/HEAD...