elasticsearch - 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/*"
}
]
}
我缺少什么动作吗?
解决方案
推荐阅读
- python-3.x - 如何使用 Pandas 导出 Excel 数据透视表?
- angular - 通过 Angular JS 调用 API 时文件为空。但是通过邮递员上传
- oracle - 如何解释 Oracle 解释计划中的成本与字节数?
- java - 如何在基于 SpringBoot 构建的 Java REST API 中查找源代码的哪一部分执行时间更长?
- python - pandas json_normalize 只生成一大行
- xpath - 如果孩子没有特定的属性值,则获取父母的属性值
- sql-server - 如何配置 SSMA 以生成忽略 NULL 的过滤唯一索引?
- jsf - 在 p:textEditor 中添加或附加文本
- mongodb - MongoDb 聚合将输出合并到一个数组中,而我需要作为单独的记录
- java - Spigot 1.16.1 中不推荐使用 PlayerChatTabCompleteEvent