Configuring access to Object Storage from an OpenSearch cluster
Managed Service for OpenSearch supports using Object Storage as an OpenSearch snapshot repository. This allows you to use Object Storage to store backups. To learn more about snapshot repository, see the OpenSearch documentation
To access Object Storage bucket data from a cluster, connect a snapshot repository.
Connecting 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.
-
Connect to the cluster.
-
Register the bucket as a snapshot repository using the public OpenSearch API
:PUT --cacert ~/.opensearch/root.crt https://admin:<password>@<ID of the OpenSearch node with the DATA role>.mdb.nemax.nebius.cloud:9200/_snapshot/<repository name>
In the request parameters, specify the bucket:
curl --request PUT \ "https://admin:<password>@<ID of the OpenSearch node with the DATA role>.mdb.nemax.nebius.cloud:9200/_snapshot/<repository name>" \ --cacert ~/.opensearch/root.crt \ --header "Content-Type: application/json" \ --data '{ "type": "s3", "settings": { "endpoint": "storage.ai.nebius.cloud", "bucket": "<bucket name>" } }'