# How to register a new S3 bucket as a snapshot repository to my existing elastic cloud?

**URL:** https://discuss.elastic.co/t/how-to-register-a-new-s3-bucket-as-a-snapshot-repository-to-my-existing-elastic-cloud/271093
**Category:** Elasticsearch
**Tags:** snapshot-and-restore
**Created:** [April 23, 2021, 1:24pm UTC](https://discuss.elastic.co/t/how-to-register-a-new-s3-bucket-as-a-snapshot-repository-to-my-existing-elastic-cloud/271093 "2021-04-23T13:24:53Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![zozo6015](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zozo6015/32/12117_2.png) [@zozo6015](https://discuss.elastic.co/u/zozo6015)
#### Post date: [April 23, 2021, 1:24pm UTC](https://discuss.elastic.co/t/how-to-register-a-new-s3-bucket-as-a-snapshot-repository-to-my-existing-elastic-cloud/271093/1 "2021-04-23T13:24:53Z")

</div>

Hello,

I want to use my own S3 bucket as a snapshot repository in case we sometime decide to not use elastic cloud for some reason we don't loose the data ingested until that moment. Is there a way to easily add one? In self hosted we are using elastic keys to store the S3 access keys how can we do that on elastic cloud.

Thanks you in advance.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [April 23, 2021, 2:44pm UTC](https://discuss.elastic.co/t/how-to-register-a-new-s3-bucket-as-a-snapshot-repository-to-my-existing-elastic-cloud/271093/2 "2021-04-23T14:44:00Z")

</div>

From your cloud console, go to security tab and click on "Add settings" in the "Elasticsearch keystore" section.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/a/6a0a16bc7f5c34405e5986d3bd9b9f18d7387178.png)

---

<div class="post-metadata">

### Author: ![zozo6015](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zozo6015/32/12117_2.png) [@zozo6015](https://discuss.elastic.co/u/zozo6015)
#### Post date: [April 23, 2021, 8:49pm UTC](https://discuss.elastic.co/t/how-to-register-a-new-s3-bucket-as-a-snapshot-repository-to-my-existing-elastic-cloud/271093/3 "2021-04-23T20:49:58Z")

</div>

I have created two keys with the names `s3.client.default.access_key` and `s3.client.default.secret_key` with the values from what I got from aws bucket creation. Then I have created a new repository on the elastic.cloud kibana which looks like this

 ![Screenshot 2021-04-23 at 23.43.13](https://us1.discourse-cdn.com/elastic/original/3X/a/6/a694e17d41bfad42e813786f7be835521fa0c20f.png) having the whole repository setting like this: ![Screenshot 2021-04-23 at 23.45.50](https://us1.discourse-cdn.com/elastic/original/3X/2/d/2deb3625ed7fa39f28accc782108e980a7968811.png) but when I try to check the repository I get the following error messages:

```auto
  "type": "repository_exception",
  "reason": "[xxx-cloud.elastic.co] Could not determine repository generation from root blobs",
  "caused_by": {
    "type": "illegal_argument_exception",
    "reason": "Unknown s3 client name [xxx-cloud.elastic.co-RW]. Existing client configs: elastic-internal-0f2aaa,default",
    "stack_trace": "java.lang.IllegalArgumentException: Unknown s3 client name [xxx-cloud.elastic.co-RW]. Existing client configs: elastic-internal-0f2aaa,default\n\tat org.elasticsearch.repositories.s3.S3Service.settings(S3Service.java:120)\n\tat org.elasticsearch.repositories.s3.S3Service.client(S3Service.java:73)\n\tat org.elasticsearch.repositories.s3.S3BlobStore.clientReference(S3BlobStore.java:114)\n\tat org.elasticsearch.repositories.s3.S3BlobContainer.listBlobsByPrefix(S3BlobContainer.java:248)\n\tat org.elasticsearch.repositories.blobstore.BlobStoreRepository.listBlobsToGetLatestIndexId(BlobStoreRepository.java:2092)\n\tat org.elasticsearch.repositories.blobstore.BlobStoreRepository.latestIndexBlobId(BlobStoreRepository.java:2074)\n\tat org.elasticsearch.repositories.blobstore.BlobStoreRepository.doGetRepositoryData(BlobStoreRepository.java:1507)\n\tat org.elasticsearch.action.ActionRunnable$2.doRun(ActionRunnable.java:62)\n\tat org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:732)\n\tat org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)\n\tat java.base/java.lang.Thread.run(Thread.java:832)\n"
  },
  "stack_trace": "RepositoryException[[xxx-cloud.elastic.co] Could not determine repository generation from root blobs]; nested: IllegalArgumentException[Unknown s3 client name [redcap-cloud.elastic.co-RW]. Existing client configs: elastic-internal-0f2aaa,default];\n\tat org.elasticsearch.repositories.blobstore.BlobStoreRepository.doGetRepositoryData(BlobStoreRepository.java:1510)\n\tat org.elasticsearch.action.ActionRunnable$2.doRun(ActionRunnable.java:62)\n\tat org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:732)\n\tat org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)\n\tat java.base/java.lang.Thread.run(Thread.java:832)\nCaused by: java.lang.IllegalArgumentException: Unknown s3 client name [redcap-cloud.elastic.co-RW]. Existing client configs: elastic-internal-0f2aaa,default\n\tat org.elasticsearch.repositories.s3.S3Service.settings(S3Service.java:120)\n\tat org.elasticsearch.repositories.s3.S3Service.client(S3Service.java:73)\n\tat org.elasticsearch.repositories.s3.S3BlobStore.clientReference(S3BlobStore.java:114)\n\tat org.elasticsearch.repositories.s3.S3BlobContainer.listBlobsByPrefix(S3BlobContainer.java:248)\n\tat org.elasticsearch.repositories.blobstore.BlobStoreRepository.listBlobsToGetLatestIndexId(BlobStoreRepository.java:2092)\n\tat org.elasticsearch.repositories.blobstore.BlobStoreRepository.latestIndexBlobId(BlobStoreRepository.java:2074)\n\tat org.elasticsearch.repositories.blobstore.BlobStoreRepository.doGetRepositoryData(BlobStoreRepository.java:1507)\n\t... 6 more\n"
}

```

Any idea what I do wrong?

---

<div class="post-metadata">

### Author: ![zozo6015](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zozo6015/32/12117_2.png) [@zozo6015](https://discuss.elastic.co/u/zozo6015)
#### Post date: [April 23, 2021, 10:18pm UTC](https://discuss.elastic.co/t/how-to-register-a-new-s3-bucket-as-a-snapshot-repository-to-my-existing-elastic-cloud/271093/4 "2021-04-23T22:18:18Z")

</div>

> [@zozo6015](#):
>
> ```auto
> "reason": "Unknown s3 client name [xxx-cloud.elastic.co-RW]. Existing client configs: elastic-internal-0f2aaa,default",
> 
> ```

Nevermind I have figured it out.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 21, 2021, 10:18pm UTC](https://discuss.elastic.co/t/how-to-register-a-new-s3-bucket-as-a-snapshot-repository-to-my-existing-elastic-cloud/271093/5 "2021-05-21T22:18:26Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
