Getting started with Yandex Object Storage
Yandex Cloud provides a universal scalable solution for data storage, Yandex Object Storage. The solution is a perfect choice both for high-load services that require reliable and fast access to data, and for projects with minimal requirements for storage infrastructure.
In Object Storage terms, files and folders are called objects. All objects are stored in buckets. The service has a flat storage structure for bucket objects, but GUI-based tools let you use Object Storage as a hierarchical file system.
The Object Storage API is partially compatible with the AWS S3 API, so you can use the tools designed to work with S3.
In this section, you will learn how to:
- Create buckets for storing data.
- Upload files to buckets.
- Get a file download link.
Getting started
- Go to the management console
and sign in to Yandex Cloud or create an account if you do not have one yet. - On the Billing
page, make sure you have a billing account linked and it has theACTIVE
orTRIAL_ACTIVE
status. If you do not have a billing account, create one. - On the Access bindings
page, make sure you have theeditor
role or higher. The role must be assigned to the folder you will be working with or the cloud the folder belongs to.
Creating the first bucket
To create your first bucket in Object Storage:
-
In the management console
, select the folder where you want to create a bucket. -
Click Create resource and select Bucket.
-
Enter the name of the bucket.
The bucket name must be unique across Object Storage. It is used as part of the data access URL and is visible to your data users.
-
Limit the maximum bucket size, if required.
If the value is
0
, the maximum size is not limited and is similar to the enabled No limit option. -
To make sure the uploaded files are always available from outside Yandex Cloud, select the public access type. Otherwise, you will need to create a temporary link to provide access to such files.
-
Choose the default storage class to be used when uploading objects:
- Standard storage is designed for storing frequently used objects.
- Cold storage is designed for long-term storage of objects that are rarely read.
- Ice storage is designed for storing objects that are very rarely read for one year and longer.
-
Click Create bucket to complete the operation.
Uploading files to a bucket
To upload an object to a bucket:
- In the management console
, select the folder. - Select Object Storage.
- Click the name of the bucket you need.
- To upload files to the bucket, drag them to the bucket screen or click Upload.
Getting a file download link
To get a link to an uploaded object:
- In the management console
, select the folder. - Select Object Storage.
- Click the name of the bucket you need.
- Click the object name.
- Click Get link in the top-right corner.
- If your bucket has restricted access, specify the link Lifetime in hours or days (the maximum time is thirty days).
- Click Get link.
- Copy the link.
You can share the received link or use it in your service to access the file.
To perform operations with buckets and objects, you can use other tools in addition to the Yandex Cloud management console.