by: Dasith kuruppu
More info here: https://coderecipe.ai/architectures/21264803
Problem Statement:
Loading streaming data from Amazon DynamoDB into Amazon ElasticSearch Service without reading through complex documentation such as this
Solution:
Use AWS Lambda to receive event notifications from DynamoDB using triggers. The lambda then runs custom code to parse the event and perform the indexing on AWS ElasticSearch. To quickly try out this solution, click on "Deploy Me".
npm install serverless
Make sure you have AWS access key and secrete keys setup locally, following this video here
serverless create --template-url https://github.com/CodeRecipe-dev/StreamDDB-AWS-ES --path StreamDDB-AWS-ES
cd StreamDDB-AWS-ES
npm install
serverless deploy --stage <your-stage-name>