当我单击elasticsearch域终结点时,它告诉我未经授权。此外,我尝试使用curl和相同的问题。我编写了一个lambda函数,该函数从dynamodb中获取数据并尝试放入es中,并且我的状态为403。
es域的配置:
{ "Version": "2012-10-17", "Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "es:*",
"Resource": "arn:aws:es:us-west-2:[ACCOUNT_ID]:domain/[ES_DOMAIN]/*"
} ] }
Lambda具有以下作用:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"es:ESHttpPost",
"es:ESHttpPut",
"dynamodb:DescribeStream",
"dynamodb:GetRecords",
"dynamodb:GetShardIterator",
"dynamodb:ListStreams",
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Resource": "*"
}
]
}
有人知道哪里有问题或我在这里想念什么吗?