Lambda to Elasticsearch
Module to stream data to Elasticsearch from a lambda function.
Heavily inspired by aws samples.
Install
npm install --save lambda-elasticsearch
Usage
var elastic = endpoint: 'your.elasticsearch.es.amazon.com' region: 'eu-west-1'; elastic;
Advanced usage
By default the module expects a JSON response. If you're expecting plain text you can call
elastic;
If json:true
and the response is not a valid JSON, the callback receives an error containing responseText
for debug purposes.
Contribute
Clone the repo, write some test, make them pass and pull request your changes.
You can watch your tests by running
npm install -g watchwatch "npm test" -d