title: Message":"User: anonymous is not authorized to perform: iam:PassRole
body: <p>I am following below link for "Use Amazon S3 to Store a Single Amazon Elasticsearch Service Index"<br>
  <a href="https://aws.amazon.com/blogs/database/use-amazon-s3-to-store-a-single-amazon-elasticsearch-service-index/" rel="noreferrer">https://aws.amazon.com/blogs/database/use-amazon-s3-to-store-a-single-amazon-elasticsearch-service-index/</a></p>
  
  <p>When I am trying </p>
  
  <pre><code>curl -XPUT 'http://localhost:9200/_snapshot/snapshot-repository' -d'{
      "type": "s3",
      "settings": {
          "bucket": "es-s3-repository",
          "region": "us-west-2",
          "role_arn": "arn:aws:iam::123456789012:role/es-s3-repository"
      }
  }'
  </code></pre>
  
  <p>with update bucket, region and role_arn, but I am getting below error</p>
  
  <p><code>{"Message":"User: anonymous is not authorized to perform: iam:PassRole on resource: arn:aws:iam...}</code></p>
  
  <p><a href="https://i.stack.imgur.com/TSAIc.png" rel="noreferrer"><img src="https://i.stack.imgur.com/TSAIc.png" alt="enter image description here"></a></p>
  
  <p>To resolve this issue, I followed this link <a href="https://aws.amazon.com/premiumsupport/knowledge-center/anonymous-not-authorized-elasticsearch/" rel="noreferrer">https://aws.amazon.com/premiumsupport/knowledge-center/anonymous-not-authorized-elasticsearch/</a> also. but still It is not working.</p>