Skip to content

AyoubUmoru/AWS-Elastic-Snapshot

Repository files navigation

README

Stand-alone project for manual AWS Elasitcsearch snapshot and restore

  • Tested with AWS ES 6.3-7.1

Prerequisites

  • Change default parameters in parameters/dev.json
  • Switch into your dev account / dev role
  • Execute ./validate.sh in order to validate the CF template
  • Execute ./deploystack.sh dev to roll out infrastructure for dev

Start

  1. Register a snapshot S3 repository (edit the environment specific parameters inside register-snap-es.py)
# Register repository

python3 register-snap-es.py
  1. Take a snapshot - see below
# Taking a snapshot

curl -XPUT 'https://vpc-YOURCLUSTER.us-east-1.es.amazonaws.com/_snapshot/essnapshot/NAME_OF_THE_SNAPSHOT?wait_for_completion=true'
  1. Restore a snapshot (make sure all target indicies have been either renamed or deleted - except for the .kibana) Note: We skip restoring the .kibana index - as this makes no sense for us
# Restoring a snapshot

curl -XPOST 'https://vpc-YOURCLUSTER.us-east-1.es.amazonaws.com/_snapshot/essnapshot/NAME_OF_THE_SNAPSHOT/_restore' -d '{"indices": "*,-.kibana"}' -H 'Content-Type: application/json'

Ressources

  • Ressources about upgrading ES -> Link

  • Ressources about ES snapshot API-> Link

About

Manual snapshot and restore for AWS Elasitcsearch

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published