# Error creating s3 repository

**URL:** <https://discuss.elastic.co/t/error-creating-s3-repository/160096>\
**Category:** Elasticsearch\
**Created:** [December 10, 2018, 5:16am UTC](https://discuss.elastic.co/t/error-creating-s3-repository/160096 "2018-12-10T05:16:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eva](https://avatars.discourse-cdn.com/v4/letter/e/dbc845/32.png) [@Eva](https://discuss.elastic.co/u/Eva)\
**Post date:** [December 10, 2018, 5:16am UTC](https://discuss.elastic.co/t/error-creating-s3-repository/160096/1 "2018-12-10T05:16:33Z")

</div>

Hello

I'm trying to create S3 repository to take a snapshot of Elasticsearch cluster and i get below error -

{"error":{"root\_cause":[{"type":"repository\_exception","reason":"[my\_s3\_repository] failed to create repository"}],"type":"repository\_exception","reason":"[my\_s3\_repository] failed to create repository","caused\_by":{"type":"sdk\_client\_exception","reason":"The requested metadata is not found at [http://169.254.169.254/latest/meta-data/iam/security-credentials/"}},"status](http://169.254.169.254/latest/meta-data/iam/security-credentials/%22%7D%7D,%22status)":500}

Below is the curl command that i used.

curl -X PUT -u elastic:elastic ":9200/\_snapshot/my\_s3\_repository" -H 'Content-Type: application/json' -d'

> {  
> "type": "s3",  
> "settings": {  
> "bucket": "newtestbuqet"  
> }  
> }  
> '

Can anyone please tell me what am I missing? There is nothing much that I could find with regards to this error.

Thanks!

---

<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:** [January 7, 2019, 5:16am UTC](https://discuss.elastic.co/t/error-creating-s3-repository/160096/2 "2019-01-07T05:16:40Z")

</div>

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