# Getting AWS credentials from keystore for discovery-ec2 plugin?

**URL:** <https://discuss.elastic.co/t/getting-aws-credentials-from-keystore-for-discovery-ec2-plugin/87958>\
**Category:** Elasticsearch\
**Created:** [June 1, 2017, 5:30pm UTC](https://discuss.elastic.co/t/getting-aws-credentials-from-keystore-for-discovery-ec2-plugin/87958 "2017-06-01T17:30:12Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Jaff](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaff/32/18382_2.png) [@Jaff](https://discuss.elastic.co/u/Jaff)\
**Post date:** [June 2, 2017, 9:11pm UTC](https://discuss.elastic.co/t/getting-aws-credentials-from-keystore-for-discovery-ec2-plugin/87958/11 "2017-06-02T21:11:01Z")

</div>

The different keystore settings did affect the result, now able to create bucket. Here is keystore list output:  
/mnt/elasticsearch# bin/elasticsearch-keystore list  
discovery.ec2.access\_key  
discovery.ec2.secret\_key  
s3.client.default.access\_key  
s3.client.default.secret\_key

Here is result of running shell script to create the repository bucket:  
/mnt/elasticsearch# bin/s3-repo-create.sh es-lineartv\_test  
{"acknowledged":true}

---

_[View the full topic](https://discuss.elastic.co/t/getting-aws-credentials-from-keystore-for-discovery-ec2-plugin/87958)._
