# S3 Repository Creation

**URL:** <https://discuss.elastic.co/t/s3-repository-creation/25221>\
**Category:** Elasticsearch\
**Created:** [July 9, 2015, 9:44am UTC](https://discuss.elastic.co/t/s3-repository-creation/25221 "2015-07-09T09:44:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanveer3](https://avatars.discourse-cdn.com/v4/letter/t/ecae2f/32.png) [@tanveer3](https://discuss.elastic.co/u/tanveer3)\
**Post date:** [July 9, 2015, 9:44am UTC](https://discuss.elastic.co/t/s3-repository-creation/25221/1 "2015-07-09T09:44:17Z")

</div>

Hi Team

I am trying to create & configure repository in S3, i am did the below steps.

Please check and advice.

1. Installing Plugin on ElasticSearch

plugin -install elasticsearch/elasticsearch-cloud-aws/2.5.1

1. Setting of AWS Value in Elasticsearch.yml

cloud.aws.access\_key: \*\*\*\*\*  
cloud.aws.secret\_key: \*\*\*\*\*

1. My Query to create Repository

curl -XPUT '[http://localhost:9200/\_snapshot/S3Repo](http://localhost:9200/_snapshot/S3Repo)' -d '{"type": "S3","settings": {"bucket": "my\_s3\_bucket","region": "US East (N. Virginia)","access\_key": "AKIAI75OD7OJRM2KOXEQ","secret\_key": "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"}}'

1. Error i received

{"error":"RepositoryException[[S3Repo] failed to create repository]; nested: NoClassSettingsException[failed to load class with value [S3]; tried [S3, org.elasticsearch.repositories.S3RepositoryModule, org.elasticsearch.repositories.S3.S3RepositoryModule, org.elasticsearch.repositories.s3.S3RepositoryModule]]; nested: ClassNotFoundException[org.elasticsearch.repositories.s3.S3RepositoryModule]; ","status":500}[root@ip-10-254-253-124 bin]#

---

<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:** [July 9, 2015, 10:26am UTC](https://discuss.elastic.co/t/s3-repository-creation/25221/2 "2015-07-09T10:26:46Z")

</div>

You did not restart the node, did you?

---

<div class="post-metadata">

**Author:** ![tanveer3](https://avatars.discourse-cdn.com/v4/letter/t/ecae2f/32.png) [@tanveer3](https://discuss.elastic.co/u/tanveer3)\
**Post date:** [July 9, 2015, 10:39am UTC](https://discuss.elastic.co/t/s3-repository-creation/25221/3 "2015-07-09T10:39:43Z")

</div>

yes David i logged into elastic search server machine and restarted the elasticsearch service

My Code  
............  
[root@ip-10-254-253-124 ~]# curl -XPUT '[http://localhost:9200/\_snapshot/S3Repo](http://localhost:9200/_snapshot/S3Repo)' -d '{"type": "s3","settings": {"bucket": "my\_bucket","region": "US East (N. Virginia)","access\_key": " **","secret\_key": "**"}}'

Error Received  
......................  
{"error":"RepositoryException[[S3Repo] failed to create repository]; nested: CreationException[Guice creation errors:\n\n1) Error injecting constructor, org.elasticsearch.ElasticsearchIllegalArgumentException: No automatic endpoint could be derived from region [US East (N. Virginia)]\n at org.elasticsearch.repositories.s3.S3Repository.(Unknown Source)\n while locating org.elasticsearch.repositories.s3.S3Repository\n while locating org.elasticsearch.repositories.Repository\n\n1 error]; nested: ElasticsearchIllegalArgumentException[No automatic endpoint could be derived from region [US East (N. Virginia)]]; ","status":500}

---

<div class="post-metadata">

**Author:** ![davidski](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidski/32/44884_2.png) [@davidski](https://discuss.elastic.co/u/davidski)\
**Post date:** [July 9, 2015, 12:03pm UTC](https://discuss.elastic.co/t/s3-repository-creation/25221/4 "2015-07-09T12:03:25Z")

</div>

Is there a reason you're using a region endpoint of "US East (N. Virginia)" instead of the standard us-east-1? The acceptable region values for V2.5.1 are documented at [https://github.com/elastic/elasticsearch-cloud-aws/tree/v2.5.1/#region](https://github.com/elastic/elasticsearch-cloud-aws/tree/v2.5.1/#region).

---

<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 6, 2017, 12:02am UTC](https://discuss.elastic.co/t/s3-repository-creation/25221/5 "2017-07-06T00:02:37Z")

</div>


