带有 Cognito 的 AWS Elasticsearch Kibana - 缺少角色

AWS Elasticsearch Kibana with Cognito - Missing role

按照本文为 AWS Elasticsearch 设置 Cognito 身份验证。

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

出现错误:

Open Distro for Elasticsearch

缺少角色

此用户没有可用的角色,请联系您的系统管理员。

有人知道我为什么能得到它吗?

如果您启用了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可能会对您有所帮助。

或者,您可以配置与 Cognito Authenticated role ARN 相同的主用户角色。

关键的缺失部分如下:

  • 在您的 AWS Elasticsearch 控制台页面上导航到 Elastisearch 域
  • 之后,点击“操作”按钮->“修改主用户”
  • 然后select“将 IAM ARN 设置为主用户”并在“IAM ARN”字段中添加 IAM 角色 ARN“arn:aws:iam:::role /
  • 点击提交