Creating A Valid Signed Request To An Aws Es Instance From Node.js
I'm trying to find an example of how to connect to an AWS ES instance in node.js, and then hit the ES cluster with a simple request. I'm attempting to use the elasticsearch node pa
Solution 1:
It turns out that I had done almost everything correctly in my question, except for one step.
The IAM user associated with the aws_access_key
and aws_secret_key
in the code above must have specific permissions to interact with the elastic search instances. So I logged in to the AWS console and added the following policy to the IAM users that would need to interact with the elasticsearch instance
{"Version":"2012-10-17","Statement":[{"Sid":"Stmt1480915344000","Effect":"Allow","Action":["es:*"],"Resource":["arn:aws:es:us-east-1:<account-id>:domain/*"]}]}
Post a Comment for "Creating A Valid Signed Request To An Aws Es Instance From Node.js"