# Can't able register aws ES snapshot repository to filesystem

**URL:** https://discuss.elastic.co/t/cant-able-register-aws-es-snapshot-repository-to-filesystem/164611
**Category:** Elasticsearch
**Created:** [January 17, 2019, 11:08am UTC](https://discuss.elastic.co/t/cant-able-register-aws-es-snapshot-repository-to-filesystem/164611 "2019-01-17T11:08:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![arun5635](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@arun5635](https://discuss.elastic.co/u/arun5635)
#### Post date: [January 17, 2019, 11:08am UTC](https://discuss.elastic.co/t/cant-able-register-aws-es-snapshot-repository-to-filesystem/164611/1 "2019-01-17T11:08:32Z")

</div>

Hi I am trying to register aws ES snapshot repository to local filesystem. Can anyone please help me in registering the repository.  
input  
curl -XPUT [http://search-ecs-alblogs-@@@@@.us-west-2.es.amazonaws.com/\_snapshot/es\_snap](http://search-ecs-alblogs-%40%40%40%40@.us-west-2.es.amazonaws.com/_snapshot/es_snap) -d ' { "type": "fs", "settings": { "location":"home/user/backup" ,"compress":true , "access\_key":"@@@@@@", "secret\_key":"@@@@","region":"us-west-2","role\_arn":"arn:aws:iam::@@@@@:user/Elasticsearch" } }

output  
Message":"User: anonymous is not authorized to perform: iam:PassRole on resource: arn:aws:iam::$$$$$:user/Elasticsearch"}.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [January 17, 2019, 12:13pm UTC](https://discuss.elastic.co/t/cant-able-register-aws-es-snapshot-repository-to-filesystem/164611/2 "2019-01-17T12:13:34Z")

</div>

You should ask on AWS forums instead as I have no idea of how they are implementing this.  
But I can say that normally when using S3 the type is not `fs` but `s3`.

BTW did you look at [https://www.elastic.co/cloud](https://www.elastic.co/cloud) and [https://aws.amazon.com/marketplace/pp/B01N6YCISK](https://aws.amazon.com/marketplace/pp/B01N6YCISK) ?

Cloud by elastic is one way to have access to all features, all managed by us. Think about what is there yet like Security, Monitoring, Reporting, SQL, Canvas, Logs UI, Infra UI and what is coming next 🙂 ...

---

<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: [February 14, 2019, 12:13pm UTC](https://discuss.elastic.co/t/cant-able-register-aws-es-snapshot-repository-to-filesystem/164611/3 "2019-02-14T12:13:41Z")

</div>

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