0
votes

Hi I am trying to register snapshot repository for aws elasticsearch . I am getting error like below

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

curl -XPUT http://search-ecs-alblogs-@@@@@.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" } }

1
I would say your user doensn’t have needed permission, so you need to add them appropriately - Mysterion
That's why I am passing access_key and secret_key of the user having permission. the user is an AWS IAM user . - ARUN R

1 Answers

0
votes

AWS Elasticsearch doesn't allow you to store snapshots on type 'fs". All snapshots must be stored in S3.

For more detail you can read through documentation : https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-managedomains-snapshots.html