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" } }