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

2 minute read

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

Short description

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



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?

I get a "User: anonymous is not authorized" error when I try to access my Amazon OpenSearch Service cluster

How can I copy S3 objects from another AWS account?

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

AWS OFFICIALUpdated a month ago