gpt4 book ai didi

amazon-web-services - 消息”:"User: anonymous is not authorized to perform: iam:PassRole

转载 作者:行者123 更新时间:2023-12-04 08:13:55 25 4
gpt4 key购买 nike

我正在关注以下“使用 Amazon S3 存储单个 Amazon Elasticsearch Service 索引”的链接
https://aws.amazon.com/blogs/database/use-amazon-s3-to-store-a-single-amazon-elasticsearch-service-index/

当我尝试

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"
}
}'

使用更新存储桶、区域和 role_arn,但出现以下错误
{"Message":"User: anonymous is not authorized to perform: iam:PassRole on resource: arn:aws:iam...}
enter image description here

为了解决这个问题,我也跟着这个链接 https://aws.amazon.com/premiumsupport/knowledge-center/anonymous-not-authorized-elasticsearch/ 。但它仍然不起作用。

最佳答案

您需要签署对 AWS Elasticsearch 的请求。您链接的博客文章描述了使用代理服务器创建签名,您这样做了吗?

作为将此类代理服务器与 curl 一起使用的替代方案,您可以从程序发出请求。在 AWS Elasticsearch docs给您一个 Python 示例,其中包含指向 Java 客户端的链接。

关于amazon-web-services - 消息”:"User: anonymous is not authorized to perform: iam:PassRole,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51858172/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com