How do I migrate data from one OpenSearch Service domain to another?

2 minute read
1

I want to move data from one Amazon OpenSearch Service domain to another.

Resolution

Use manual snapshots to migrate individual indices or entire OpenSearch Service domains. Migrate data to a domain in the same AWS account or to a domain in a different account.

Note: You can also use manual snapshots to back up individual indices or the entire domain.

Prerequisites:

Complete the following steps:

  1. Register the same manual snapshot repository on both the source and destination domains. Your destination is usually an Amazon Simple Storage Service (Amazon S3) bucket.
    Note: You can use server-side encryption with Amazon S3 managed keys (SSE-S3) to encrypt the S3 bucket that you use as the snapshot repository.
  2. (Optional) If you're migrating to another account, then attach a policy to the source S3 bucket that grants cross-account permissions to the destination.
  3. Take a manual snapshot of the source domain.
  4. Use the _restore API to restore the snapshot to the destination domain.

Related information

How do I resolve the "cannot restore index [.kibana]" error in Amazon OpenSearch Service?

Why did I get a "User: anonymous is not authorized" error when I tried to access my OpenSearch Service cluster?

How do I copy Amazon S3 objects from another AWS account?

How do I provide cross-account access to objects that are in Amazon S3 buckets?

AWS OFFICIAL
AWS OFFICIALUpdated 6 months ago
3 Comments

I want only a snapshot manually for backup purposes through the OpenSearch indexes. What can I do?

replied 9 months ago

Thank you for your comment. We'll review and update the Knowledge Center article as needed.

profile pictureAWS
MODERATOR
replied 9 months ago

Hello Akash, Apologies for the delayed response! You may follow below guide to configure snapshot of the required indices present in your OpenSearch domain. This guide will help you on how to configure Snapshot repository (which is AWS S3 bucket) and how to take manual snapshot. https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-snapshots.html

Please let me know in case if you are looking for any other details or have any other queries and I would be more than happy to help you.

profile pictureAWS
SUPPORT ENGINEER
replied 8 months ago