我正在针对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/*"
}
]
}
我有什么动作想念吗?