我正在关注以下“使用 Amazon S3 存储单个 Amazon Elasticsearch Service 索引”的链接
https://aws.amazon.com/blogs/database/use-amazon-s3-to-store-a-single-amazon-elasticsearch -服务索引/
当我尝试
curl -XPUT 'http://localhost:9200/_snapshot/snapshot-repository' -d'{
"type": "s3",
"settings": {
"bucket": "es-s3-repository",
"region": "us-west-2",
"role_arn": "arn:aws:iam::123456789012:role/es-s3-repository"
}
}'
Run Code Online (Sandbox Code Playgroud)
使用更新存储桶、区域和 role_arn,但出现以下错误
{"Message":"User: anonymous is not authorized to perform: iam:PassRole on resource: arn:aws:iam...}
为了解决这个问题,我也点击了这个链接https://aws.amazon.com/premiumsupport/knowledge-center/anonymous-not-authorized-elasticsearch/。但它仍然不起作用。