Snapshot/Restore with Custom Repository

We support specifying your own S3 repositories to snapshot to and restore from. This can be useful, for example, to do long-term archiving of old indexes, or to be certain you have an exit strategy should you need to move away from our service.

Preparing a Bucket

Create the bucket with your custom AWS account. Make sure the bucket is in the same region as your cluster.

Then, create an IAM user, copy the access key ID and secret, then configure the following user policy. This is important to make sure the access keys, which you will need to provide to your cluster, can only access the intended bucket.

  "Statement": [
      "Action": [
      "Effect": "Allow",
      "Resource": [

For more information on S3 and IAM, please consult AWS' S3-documentation and IAM-documentation.

Creating the Repository

With the bucket ready, you can create a repository by PUT-ing the following to /_snapshot/repository_name:

  "type": "s3",
  "settings": {
    "bucket": "name-of-bucket",
    "region": "region-of-bucket-same-as-cluster",
    "access_key": "AKIAYOURKEYHERE",
    "secret_key": "secret-key-with-just-permission-to-that-bucket-do-not-use-a-master-key",
    "compress": true