Create a bucket
-
In the control panel, in the top menu, click Products and select S3.
-
Go to the Buckets section.
-
Click Create bucket.
-
Enter a bucket name. For S3 API compatibility, the bucket name must meet the following conditions:
- be unique among the buckets of all users who use storage via S3 API and are hosted in the same pool;
- comply with Amazon S3 bucket naming rules — contain only numbers, Latin letters, and characters
.and-, for details see the Bucket naming rules guide in the Amazon documentation.
-
Select the region and pool where the bucket will be created.
-
In the Configuration block:
6.1. Select the bucket type:
- private — for storing backups and other data accessible via login and password or an authorization token;
- public — for hosting website or web application content; accessible without authorization.
6.2. Select a storage class:
- standard storage — for storing and serving frequently requested data;
- cold storage — for storing rarely requested data;
- glacier storage — for storing very rarely requested data. Available only in the ru-3 pool.
The storage class only affects resource costs; technically and in terms of speed, the classes are identical. Once a bucket is created, the storage class cannot be changed.
6.3. Select an addressing type. We recommend choosing virtual-hosted-style addressing for working with the S3 API. You cannot change the addressing type to path-style after creating the bucket.
-
Optional: in the Data protection block:
7.1. To store previous object versions, enable versioning.
7.2. To protect objects from deletion, enable Object Lock. Enabling Object Lock does not lock objects automatically — you will be able to manage object locking after creating the bucket. Object Lock requires versioning — if you do not enable it, it will be enabled automatically.
-
Click Create bucket.