我在我的aws elasticsearch访问策略中添加了以下IP访问限制:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "es:*",
"Resource": "arn:aws:es:us-west-2:000000000000:domain/tst/*",
"Condition": {
"IpAddress": {
"aws:SourceIp": [
"XX.XX.XX.XX"
]
}
}
}
]
}
我有一个lambda函数和一个kinesis firehouse读取和写入elasticsearch索引。我怎样才能将lambda和kenesis firehouse permisions添加到我的elasticsearch访问策略中?
答案 0 :(得分:0)
最后我解决了以下问题:
将以下政策添加到aws elasticsearch:
{ "版本":" 2012-10-17", "陈述":[ { "效果":"允许", "校长":{ " AWS":" arn:aws:iam ::: user / admin" }, "行动":" es:*", "资源":" example-domain.us-east-1.es.amazonaws.com :: domain / *" }, { "效果":"允许", "校长":{ " AWS":" *" }, "行动":" es:*", "资源":" example-domain.us-east-1.es.amazonaws.com :: domain / *", "条件":{ " IpAddress":{ " aws:SourceIp":"" } } } ] }
使用安全凭证在IAM用户处添加以下策略:
{ "版本":" 2012-10-17", "陈述":[ { " Sid":" elasticsearchFullAccess", "效果":"允许", "行动":[ " es:*" ] "资源":[ " arn:aws:es:us-east-1 :: domain / *" ] } ] }
使用this签署请求。
由于this问题
,我解决了这个问题