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
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Managed Service for Elasticsearch
  • Getting started
    • All guides
      • Information about existing clusters
      • Creating a cluster
      • Stopping and starting a cluster
      • Managing hosts
      • Migrating hosts to a different availability zone
      • Managing backups
      • Configuring access to Object Storage
      • Deleting a cluster
    • User management
  • Access management
  • Pricing policy
  • CLI reference
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes
  • FAQ

In this article:

  • Connecting a service account to a cluster
  • Setting up access rights
  • Connecting a snapshot repository
  1. Step-by-step guides
  2. Clusters
  3. Configuring access to Object Storage

Configuring access to Object Storage from a Elasticsearch cluster

Written by
Yandex Cloud
Updated at May 13, 2024
  • Connecting a service account to a cluster
  • Setting up access rights
  • Connecting a snapshot repository

Warning

Yandex Managed Service for Elasticsearch is unavailable as of April 11, 2024.

You can create an OpenSearch cluster in Yandex Cloud as an alternative to Elasticsearch.

Managed Service for Elasticsearch supports using Yandex Object Storage as an Elasticsearch snapshot repository. This allows you to use Object Storage for:

  • Migrating data from a third-party Elasticsearch cluster to Managed Service for Elasticsearch.

  • Adding user extensions.

  • Storing backups.

For more information about snapshots, see the Elasticsearch documentation.

To access Object Storage bucket data from a cluster:

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

Connecting a service account to a clusterConnecting a service account to a cluster

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

  2. Make sure to assign the storage.editor role or higher to this account.

Setting up access rightsSetting up access rights

Management console
  1. In the management console, select the folder containing the bucket you need. 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.
    4. Click Save.

Connecting a snapshot repositoryConnecting a snapshot repository

Alert

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

  1. Connect to the cluster.

  2. Install the repository-s3 plugin:

    sudo bin/elasticsearch-plugin install repository-s3
    
  3. Register the bucket as a snapshot repository using the public Elasticsearch API:

    PUT --cacert ~/.elasticsearch/root.crt https://admin:<password>@<host_FQDN>:9200/_snapshot/<repository>
    

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

    curl --request PUT \
         "https://admin:<password>@<host_FQDN>:9200/_snapshot/<repository>" \
         --cacert ~/.elasticsearch/root.crt \
         --header "Content-Type: application/json" \
         --data '{
           "type": "s3",
           "settings": {
             "endpoint": "storage.yandexcloud.net",
             "bucket": "<bucket_name>",
             "base_path": "<path_to_snapshot_directory>",
             "canned_acl": "bucket-owner-full-control"
           }
         }'
    

    To learn more about managing repositories, see the Elasticsearch documentation.

Was the article helpful?

Previous
Managing backups
Next
Deleting a cluster
© 2025 Direct Cursus Technology L.L.C.