Search code examples
amazon-web-serviceselasticsearchamazon-cognitoamazon-iamelasticsearch-opendistro

AWS Elasticsearch Kibana with Cognito - Missing role


Following this article to set up Cognito auth for AWS Elasticsearch.

https://aws.amazon.com/blogs/database/get-started-with-amazon-elasticsearch-service-use-amazon-cognito-for-kibana-access-control/

Getting an error:

Open Distro for Elasticsearch

Missing Role

No roles available for this user, please contact your system administrator.

Anybody knows why I could get itenter image description here?


Solution

  • If you have enabled Fine-Grained Access Control with your Elasticsearch domain, one of the assumed roles from the Amazon Cognito identity pool must match the IAM role that you specified for the Master User. Considering you have at least two existing IAM roles, one for the Master User and one for more limited users, this guide may help you.

    Alternatively you can configure the master user role same as Cognito Authenticated role ARN.