Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Managed Service for OpenSearch
  • Getting started
    • All guides
      • Information about existing clusters
      • Creating a cluster
      • Stopping and starting a cluster
      • Managing backups
      • Configuring access to Object Storage
      • Deleting a cluster
    • User management
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes
  • FAQ

In this article:

  • Connect the service account to the cluster
  • Configure access permissions
  • Connect a snapshot repository
  1. Step-by-step guides
  2. Clusters
  3. Configuring access to Object Storage

Configuring access to Object Storage from an OpenSearch cluster

Written by
Yandex Cloud
Updated at May 5, 2025
  • Connect the service account to the cluster
  • Configure access permissions
  • Connect a snapshot repository

Managed Service for OpenSearch supports using Yandex Object Storage as an OpenSearch snapshot repository. This allows you to use Object Storage to store backups. For more information about snapshot repositories, see the OpenSearch documentation.

To access Object Storage bucket data from a cluster:

  1. Connect the service account to the cluster.
  2. Configure access permissions.
  3. Connect a snapshot repository.

Before you begin, assign the iam.serviceAccounts.user role or higher to your Yandex Cloud account. You will need this role in the following cases:

  • To create or modify a cluster and link it to a service account.
  • To restore a cluster linked to a service account from its backup.

Connect the service account to the clusterConnect the service account to the cluster

  1. When creating or updating a cluster, either select an existing service account or create a new one.

  2. Assign the storage.editor role to this account.

Configure access permissionsConfigure access permissions

Management console
  1. In the management console, select the folder with the appropriate bucket. If there is no such bucket, create one.

  2. Select Object Storage.

  3. Select the Buckets tab.

  4. Set up the bucket ACL:

    1. In the Select a user drop-down list, specify the service account connected to the cluster.
    2. Select the READ and WRITE permissions for the selected service account.
    3. Click Add and Save.

Connect a snapshot repositoryConnect a snapshot repository

Alert

If a bucket is registered in an OpenSearch cluster as a snapshot repository, do not edit the bucket contents manually as this will disrupt the OpenSearch snapshot mechanism.

  1. Install the repository-s3 plugin.

  2. Connect to the cluster.

  3. Register the bucket as a snapshot repository using the public OpenSearch API:

    PUT --cacert ~/.opensearch/root.crt https://admin:<password>@<ID_of_OpenSearch_host_with_DATA_role>.mdb.yandexcloud.net:9200/_snapshot/<repository_name>
    

    In the request parameters, specify the bucket associated with the cluster service account:

    curl --request PUT \
         "https://admin:<password>@<ID_of_OpenSearch_host_with_DATA_role>.mdb.yandexcloud.net:9200/_snapshot/<repository_name>" \
         --cacert ~/.opensearch/root.crt \
         --header "Content-Type: application/json" \
         --data '{
           "type": "s3",
           "settings": {
             "endpoint": "storage.yandexcloud.net",
             "bucket": "<bucket_name>"
           }
         }'
    

Was the article helpful?

Previous
Managing backups
Next
Deleting a cluster
Yandex project
© 2025 Yandex.Cloud LLC