# Issue with storing access keys using elasticsearch-keystore

**URL:** <https://discuss.elastic.co/t/issue-with-storing-access-keys-using-elasticsearch-keystore/167821>\
**Category:** Elasticsearch\
**Created:** [February 11, 2019, 10:13am UTC](https://discuss.elastic.co/t/issue-with-storing-access-keys-using-elasticsearch-keystore/167821 "2019-02-11T10:13:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sireesha\_Madabhushi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sireesha_madabhushi/32/44972_2.png) [@Sireesha\_Madabhushi](https://discuss.elastic.co/u/Sireesha_Madabhushi)\
**Post date:** [February 11, 2019, 10:13am UTC](https://discuss.elastic.co/t/issue-with-storing-access-keys-using-elasticsearch-keystore/167821/1 "2019-02-11T10:13:23Z")

</div>

Continuing the discussion from [Issue with s3 repository](https://discuss.elastic.co/t/issue-with-s3-repository/114542/17):

I am facing exactly the same issue. I know that the access key and secret key are set to correct values when I enter them from command line. But when I try to create the snapshot using the below arguments, am getting an invalid access key error.  
{  
type: 's3',  
settings: {  
bucket: 'my-bucket',  
endpoint: '[my-bucket.s3.amazonaws.com](http://my-bucket.s3.amazonaws.com)'  
}

Error when I try to do 'PUT' using '/\_snapshot/myapi', I get this error.  
{ type: 'i\_o\_exception',  
reason: 'Unable to upload object [tests-2bkb7DnQRbuOcJFSh0LlmQ/master.dat] using a single upload',  
caused\_by:  
{ type: 'amazon\_s3\_exception',  
reason: 'The AWS Access Key Id you provided does not exist in our records. (Service: Amazon S3; Status Code: 403; Error Code:  
InvalidAccessKeyId; Request ID: E58DEF25A73D7DEF; S3 Extended Request ID: H5sRO1Cfz36di+1NV+Z/KVIYIz+DZN3HnojoPGUjSqm+WzWIPWFhjWQjt2  
tYNewZiUzTvwRzb6Y=)' } }

Is there a known issue with elasticsearch-keystore?

---

<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:** [March 11, 2019, 10:13am UTC](https://discuss.elastic.co/t/issue-with-storing-access-keys-using-elasticsearch-keystore/167821/2 "2019-03-11T10:13:31Z")

</div>

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