# Problem creating a s3 repository with Elasticsearch

**URL:** <https://discuss.elastic.co/t/problem-creating-a-s3-repository-with-elasticsearch/172269>\
**Category:** Elasticsearch\
**Created:** [March 14, 2019, 7:43am UTC](https://discuss.elastic.co/t/problem-creating-a-s3-repository-with-elasticsearch/172269 "2019-03-14T07:43:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Javier\_Parrondo](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@Javier\_Parrondo](https://discuss.elastic.co/u/Javier_Parrondo)\
**Post date:** [March 14, 2019, 7:43am UTC](https://discuss.elastic.co/t/problem-creating-a-s3-repository-with-elasticsearch/172269/1 "2019-03-14T07:43:03Z")

</div>

Hello,

I have a bucket created in Amazon S3 and I dont get to create the repository withint it.  
Through the awscli client I list and see all the folders inside the bucket so I thinks that the access\_key and the secret\_key works fine but when I try via curl command to create the repository in this bucket I obtain the next message:

curl -XPUT -H 'Content-Type: application/json' '[http://localhost:9200/\_snapshot/my\_repository](http://localhost:9200/_snapshot/my_repository)' -d'  
{  
"type": "s3",  
"settings": {  
"endpoint":"host\_s3:port\_s3",  
"access\_key":"xxxxxx",  
"secret\_key":"xxxxx",  
"protocol":"http",  
"bucket": "bucket\_name",  
"region": "us-east-1",  
"base\_path":"my\_backups"  
}  
}'  
{"error":{"root\_cause":[{"type":"repository\_verification\_exception","reason":"[my\_repository] path [my\_backups] is not accessible on master node"}],"type":"repository\_verification\_exception","reason":"[my\_repository] path [my\_backups] is not accessible on master node","caused\_by":{"type":"i\_o\_exception","reason":"Unable to upload object my\_backups/tests-Uy\_1o3lfT7aEUCMjPFCzrw/master.dat-temp","caused\_by":{"type":"amazon\_s3\_exception","reason":"amazon\_s3\_exception: Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: 1fb1cd8f4a428bd83b7e)"}}},"status":500}

I have tried to launch this command with the veryfy=false but it does not make sense if I have tried to create a snapshot after this.

Do you know if I need something else to create the s3 repository with Elasticsearch inside this buckets?

Thanks for all.  
Best Regards

---

<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:** [April 11, 2019, 7:52am UTC](https://discuss.elastic.co/t/problem-creating-a-s3-repository-with-elasticsearch/172269/2 "2019-04-11T07:52:48Z")

</div>

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