# Lambda function as a chain link between Kinesis stream and Elasticsearch for direct_delivery DB encoding_queue_detail

This repository is based on
(https://github.com/theorchard/docs/tree/master/boilerplates/python-lambda, last commit 3094f451615f0c3e95651fb5d0518cb12fdc8601)
the generic boilerplate for AWS Lambda functions. Please refer to the boilerplate for general information.


## Environment

Required environment vars could be found in the `.env.shadow` in the root
directory of this repository.


## How to work on these Lambda functions locally

Build:

    docker build -t ci-lambda build/

Run common tests:

    docker run --env-file=.env -it -v `pwd`:/reporoot ci-lambda /home/jenkins/common-module-tests.sh /reporoot/lambda

Run lambda-specific tests:

    docker run --env-file=.env -it -v `pwd`:/reporoot ci-lambda reporoot/build/build.sh dev /reporoot/lambda dd_search

