Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access AWS ElasticSearch Service automated snapshots/backups?

I was under the impression AWS ElasticSearch service comes with automated snaphshots/backups. Thats what I find in the documentation. It suggests they happen once a day and are stored on s3 but I do not see any backups in any of my s3 buckets. How do you get access to the automated snapshots?

It probably doesn't matter but I used the following template to create my elasticsearch domain explicitly indicating I want automated backups.

CloudFormation

"SnapshotOptions": {
    "AutomatedSnapshotStartHour": "0"
}
like image 807
Usman Mutawakil Avatar asked Nov 08 '17 17:11

Usman Mutawakil


People also ask

Where are AWS Elasticsearch snapshots stored?

These snapshots are stored in your own Amazon S3 bucket and standard S3 charges apply. If you have a snapshot from a self-managed OpenSearch cluster, you can use that snapshot to migrate to an OpenSearch Service domain.

Where are OpenSearch snapshots stored?

The following request registers a new S3 repository called my-opensearch-repo in an existing bucket called my-open-search-bucket . By default, all snapshots are stored in the my/snapshot/directory .


1 Answers

You can't get to the S3 bucket itself but you can restore from the backup stored inside it by using CURL or another HTTP client to communicate directly with your cluster telling it to rebuild from the "cs-automated" repository which is linked to the s3 snapshots. To be able to communicate with your ES cluster directly via HTTP you'll have to temporarily open an IP access policy to your cluster.

http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-managedomains-snapshots.html#es-managedomains-snapshot-restore

like image 81
Usman Mutawakil Avatar answered Sep 28 '22 10:09

Usman Mutawakil