AWS Elasticsearch未能针对_refresh请求

时间:2020-03-22 07:40:01

标签: elasticsearch aws-elasticsearch

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

所有请求-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/*"
    }
  ]
}

我有什么动作想念吗?

0 个答案:

没有答案