Getting started with Yandex Object Storage
In this section, you will learn how to use Yandex Object Storage via the Yandex Cloud management console. For instructions on how to use the AWS CLI, see Getting started with the AWS CLI in Yandex Object Storage.
To get started with Object Storage:
- Create a bucket for storing data.
- Upload a file to the bucket.
- Get a download link for the file.
Getting started
- Go to the management console
and log in to Yandex Cloud or sign up if not signed up yet. - On the Yandex Cloud 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 yet, create one. - On the Access bindings
page, make sure you have theeditor
role or higher. The role must be assigned for 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 you want to create a bucket in. -
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. -
If you want the files you upload to be always accessible from outside of Yandex Cloud, configure public access.
Warning
Public access is granted to an unlimited number of anonymous users. Use it only when other access grant mechanisms are not available.
In a bucket with restricted access, you can also make the uploaded files accessible with the help of temporary links.
-
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 objects you need to store for at least one year and which rarely get read requests.
-
Click Create bucket.
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 and confirm the upload of the files.
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.
- For a bucket with restricted access, specify the link Lifetime in hours or days (the maximum time is 30 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.