dynamo-to-elasticsearch-nodejs
v1.0.5
Published
Performance oriented node.js lambda handler for DynamoDB to Elastic search using DynamoDB streams. This module uses Bulk processing. Compatible with node 12.x and above.
Downloads
113
Maintainers
Readme
dynamo-to-elasticsearch-nodejs
Performance oriented node.js lambda handler for DynamoDB to Elastic search using DynamoDB streams. This module uses Bulk processing. Compatible with node 12.x and above.
Getting Started
Install:
npm i dynamo-to-elasticsearch-nodejsUse it in your lambda:
const DynamoToES = require('dynamo-to-elasticsearch-nodejs');
exports.handler = async function handler(event) {
const client = new DynamoToES({ node: process.env.ES_ENDPOINT });
const response = await client.bulkHandler(event);
return response;
};star this repository if it works as expected!!
Parameters
Running tests
Tests are written in using jest. Tests can be launched using:
npm testAuthors & Contributors
License
This project is licensed under the GNU GPL v3 License - see the LICENSE.md file for details
