OpenSearch: Restore a Domain
Who can use this feature
Anyone with these permissions: Restore resources
When an Amazon OpenSearch Service domain loses data, restoring it from an Eon snapshot puts its indices and aliases back into a running domain in your restore account, so you don’t have to recreate the domain or load the data again yourself.
This article explains how to restore OpenSearch domains from your Eon snapshots in the Eon console. You can restore into a new OpenSearch domain that Eon creates, or into an OpenSearch domain that already exists in the restore account.
Restore the domain
You can restore a domain from the inventory page in the Eon console.
Before you start
Before you restore an OpenSearch domain, make sure:
-
A restore account has been connected to your Eon account.
-
OpenSearch restore is turned on for the restore account, and the account has the latest permissions version. To turn it on, set
EnableOpenSearchRestoretotrue(enable_opensearch_restorein Terraform) when you update the restore account’s Eon permissions, and then run Update permissions on the account. For the steps, see AWS: Update Permissions. -
The restore account has a VPC and subnet that meet the restore server connectivity requirements for the temporary restore server.
-
The engine version you restore to is compatible with the source domain’s, as described in Engine version compatibility.
-
If you restore into an existing domain, make sure it:
-
Is in the restore account and in the Region you restore to.
-
Is available, not still being created or deleted.
-
Is reachable from the restore server, because it has a public endpoint or is attached to the VPC that the restore server runs in. A private domain in another VPC also works, because Eon creates a VPC endpoint to the domain for the restore and removes it afterward.
-
Has no index with the same name as an index in the snapshot, because Eon doesn’t overwrite existing indices.
-
A restore doesn’t bring back everything from the source domain. For what it leaves out, see the Restore support notes.
Find the snapshot you want to restore
-
In your inventory, select the OpenSearch domain you want to restore. The Resource details panel opens.
-
Click the Eon snapshots tab. You’ll see a calendar view with colored dots on the days when snapshots were taken. There can be more than one snapshot per day.
When you click a day, a list of Eon snapshots taken that day is displayed below the calendar.
-
Select the snapshot you want to restore.
-
Click Restore. The Restore OpenSearch wizard opens.
Choose the restore account
The wizard starts with the Restore Account step. Choose the cloud account you want to restore the domain in, and then click Next. The restore account can be a different account from the one the domain was backed up from.
Configure the restored domain
In the Configuration step, you set where the data is restored to and, for a new domain, how the domain is configured.
-
Choose the Region in the restore account to restore the domain in.
-
To restore into a domain that already exists in the restore account, turn Restore into an existing domain on. Turning it on clears the Domain name field. The domain keeps its own engine version, instance settings, and network, so the optional fields and tag options below don’t apply.
-
Enter the Domain name. For an existing domain, enter its name. For a new domain, the name must not already exist in the restore account. It has 3 to 28 characters, uses only lowercase letters, numbers, and hyphens, and starts with a letter.
To change the new domain’s engine version or configuration, fill in these optional fields. Leave a field blank to use the source domain’s value:
-
Engine version: The engine and version of the restored domain, such as
OpenSearch_2.11. -
Instance type: The data node instance type.
-
Instance count: The number of data nodes. Enter a positive whole number.
-
EBS volume size (GiB): The EBS volume size for each data node. Enter a positive whole number. The total volume capacity must be large enough to hold the restored indices.
-
EBS volume type: The EBS volume type for each data node, such as
gp3.
To keep the tags the source domain had when the snapshot was taken, leave Keep original tags on.
To set your own tags, turn Keep original tags off, click + Add Tag, and enter a key and a value for each tag.
Eon tags a new domain with eon:restore=true whatever you choose here, and doesn’t add tags to an existing domain.
Start the restore job
Click Restore to start the asynchronous restore job. If an action approval rule covers restores, Eon creates an action request instead of starting the job. The restore starts after the request is approved and you apply it.
You can see your list of restore jobs on the Restore jobs tab in the Jobs page. The job is listed as OpenSearch domain restore.
When the job status is Complete on the Restore jobs tab, the restored domain is in your restore account with the snapshot’s indices and aliases. AWS bills the restored domain to the restore account.
See also
-
What a restore creates in your restore account: The settings, network, and access policy of a new domain.
-
Restore troubleshooting: Fixes for a restore that fails.