首页 > 解决方案 > AWS Elasticsearch _refresh 请求失败

问题描述

我正在IAM user为 AWS Elasticsearch 使用基于 ARN 的访问策略。根据在 RestHighLevelClient 中使用 AWS4Signer 进行弹性搜索的文档签名请求。

所有的请求 -put/get/search都在工作。但是,POST /_refresh在保存文档结束时使用失败说:

"The request signature we calculated does not match the signature you provided"

使用的策略如下:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:aws:iam::accountId:user/esUser"
      },
      "Action": "es:*",
      "Resource": "arn:aws:es:ap-south-1:accountId:domain/myDomain/*"
    }
  ]
}

我缺少什么动作吗?

标签: elasticsearchaws-elasticsearch

解决方案


推荐阅读