aws-es-connector
v1.0.5
Published
A small HttpConnector to be used with aws elasticsearch service
Downloads
15
Readme
aws-es-connector
A small HttpConnector to be used with aws elasticsearch service
Usage
var AwsHttpConnector = require("awsesconnector");
var elasticsearch = require("elasticsearch")
module.exports.elasticsearchPlaces = new elasticsearch.Client({
"host": <host:port>,
"connectionClass": AwsHttpConnector,
"awsESConfig": {
"accessKey": <aws access key> ,
"secretKey":<aws secret key>,
"region": <aws region>,
"serviceName":< service name ('es' in case of ElasticSearch Service)
},
"legacy": <boolean:use aws or not> // This is inverted where true means don't use aws and vice versa
});