Creating an S3 bucket
When registering on the MCS platform and activating an account, the user gets full access to the Object Storage service.
Before uploading an object to storage, you should create a bucket to place it.
There are several types of buckets, differing in both the purpose and the amount of payment for the objects placed in them:
- Hotbox - designed to store and quickly distribute a large number of files for media services, online media, sites with multi-user content and mobile applications
- Icebox - cloud storage of rarely used data: backups, logs, media content, scientific, statistical data, as well as working archives
- Backup - placement of backups of instances created both automatically and manually. A bucket of this type is not subject to self-creation or deletion, but is managed by a backup service
You can create a bucket both in the MCS Panel and using the S3 CLI.
Creation via MCS Panel
To create you should:
- Go to the "Buckets" tab of the Object Storage service in the MCS panel.
- Press the "Add" button:
- Select the type of bucket to create and enter a DNS-compatible name:
Once a bucket is created, its name cannot be changed.
Creation via S3 CLI
Create an authorized account
Before creating a bucket, you need to create a user who will be granted access to control operations in the S3 CLI.
To do this, on the "Accounts" tab of the "Object storage" service, create an account by clicking the "Add account" button,
Specify any desired name and save the resulting API keys:
Log in to S3 CLI
Launch AWS S3 Configuration
Use the following data in the configurator:
- Access Key ID: the key received when creating an account
- Secret Key: the key received when creating an account
- Default region name: ru-msk
- Default output format: json
Bucket is created using the command
aws s3 mb s3: // <unique_packet_name> --endpoint-url <endpoint-url>
- https://hb.bizmrg.com - for the Hotbox storage class
- https://ib.bizmrg.com - for Icebox storage class
The following output will appear as a result of the correct execution of the command:
make_bucket: <created bucket name>
A bucket with the appropriate storage type will be created. You can change its type in the MCS panel.