# Registering backup repository via configuration file

**URL:** <https://discuss.elastic.co/t/registering-backup-repository-via-configuration-file/28665>\
**Category:** Elasticsearch\
**Created:** [September 4, 2015, 9:13am UTC](https://discuss.elastic.co/t/registering-backup-repository-via-configuration-file/28665 "2015-09-04T09:13:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anatoly\_Petkevich](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anatoly_petkevich/32/97607_2.png) [@Anatoly\_Petkevich](https://discuss.elastic.co/u/Anatoly_Petkevich)\
**Post date:** [September 4, 2015, 9:13am UTC](https://discuss.elastic.co/t/registering-backup-repository-via-configuration-file/28665/1 "2015-09-04T09:13:30Z")

</div>

Is this possible to register a repository for snapshots via configuration file instead of API ?

it is not clear from previous discussions [Register snapshot repositories via config file?](https://discuss.elastic.co/t/register-snapshot-repositories-via-config-file/18913)  
and [https://groups.google.com/forum/#!msg/elasticsearch/7v4Sp7lETvw/rF5B72aTgYUJ](https://groups.google.com/forum/#!msg/elasticsearch/7v4Sp7lETvw/rF5B72aTgYUJ)

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [September 5, 2015, 3:10am UTC](https://discuss.elastic.co/t/registering-backup-repository-via-configuration-file/28665/2 "2015-09-05T03:10:26Z")

</div>

No, it's not possible.

---

<div class="post-metadata">

**Author:** ![Kirill\_Lutarevich](https://avatars.discourse-cdn.com/v4/letter/k/f475e1/32.png) [@Kirill\_Lutarevich](https://discuss.elastic.co/u/Kirill_Lutarevich)\
**Post date:** [September 10, 2015, 5:32pm UTC](https://discuss.elastic.co/t/registering-backup-repository-via-configuration-file/28665/3 "2015-09-10T17:32:22Z")

</div>

Does it make sense to add ANY AWS Cloud specific configuration to elasticsearch,yml if I plan to use the plug-in only to enable "repository for snapshots" feature? In other words, in the plugin's wiki all the parameters like region, bucket, access and secret key are passed to the API as parameters. Does this mean that their equivalent values (if specified) from elasticsearch.yml (e.g. cloud.aws.access\_key or cloud.aws.secret\_key) are simply ignored?

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [September 10, 2015, 5:46pm UTC](https://discuss.elastic.co/t/registering-backup-repository-via-configuration-file/28665/4 "2015-09-10T17:46:25Z")

</div>

Yes, the parameters specified using API take precedence over parameters specified in config file.

---

<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:** [July 5, 2017, 11:51pm UTC](https://discuss.elastic.co/t/registering-backup-repository-via-configuration-file/28665/5 "2017-07-05T23:51:06Z")

</div>


