# S3 configuration problem

**URL:** https://discuss.elastic.co/t/s3-configuration-problem/17063
**Category:** Elasticsearch
**Created:** [April 17, 2014, 4:04pm UTC](https://discuss.elastic.co/t/s3-configuration-problem/17063 "2014-04-17T16:04:14Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![IronMan2014](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@IronMan2014](https://discuss.elastic.co/u/IronMan2014)
#### Post date: [April 17, 2014, 4:04pm UTC](https://discuss.elastic.co/t/s3-configuration-problem/17063/1 "2014-04-17T16:04:14Z")

</div>

The error below seems to indicate that my credentials aren't correct, which  
I know they are. Could the error below something else?

//////////YML //////////////////////////

cloud:

```
 aws:

     access_key: ##########

     secret_key: ##########

discovery:

    type: ec2

gateway:

    type: s3

    s3:

        bucket: my-bucket-name

```

////////////////////////////////////////////////////////////////

curl -XPUT '[http://localhost:9200/\_snapshot/my\_s3\_repository](http://localhost:9200/_snapshot/my_s3_repository)' -d '{

> ```
> "type": "s3",
> 
> ```

> ```
> "settings": {
> 
> ```

> ```
> "bucket": "my-bucket-name",
> 
> ```

> ```
> "region": "us-east-1" //with/out --
> 
> ```

> ```
> }
> 
> ```

> }'

{"error":"RepositoryException[[my\_s3\_repository] failed to create  
repository]; nested: CreationException[Guice creation errors:\n\n1) Error  
injecting constructor, com.amazonaws.AmazonClientException: Unable to load  
AWS credentials from any provider in the chain\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:  
AmazonClientException[Unable to load AWS credentials from any provider in  
the chain];

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/7a850e80-903a-4f04-abf8-672e83107557%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7a850e80-903a-4f04-abf8-672e83107557%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:35am UTC](https://discuss.elastic.co/t/s3-configuration-problem/17063/2 "2017-07-06T01:35:11Z")

</div>


