<p>My AWS lambda functions have input from AWS SNS (Topic subscription) and output will go to CRUD in NoSQL Database (likewise MongoDB).</p>
<p>So currently I have the SNS &amp; Lambda function setup in AWS Cloud and they are working fine. However, I would like to containerize the lambda function as well as the MongoDB database and host them on AWS EKS using Docker + Kubernetes service. (So the functions will be a Docker image)</p>
<p>I am totally new to this container thing and I searched online though I could not found any that mentions how to containerized AWS Lambda Functions.</p>
<p>Is this possible? If it is what are the ways to do it?
Thank you.</p>

Sivvie Lim
<p>The docker environment for AWS lambda function already exist and it is <a href="https://hub.docker.com/r/lambci/lambda/" rel="nofollow noreferrer">lambci/lambda</a>. So if you want to run/test your functions locally, this is the tool normally used for that:</p>
<blockquote>
<p>A sandboxed local environment that <strong>replicates the live AWS Lambda environment almost identically</strong> – including installed software and libraries, file structure and permissions, environment variables, context objects and behaviors – even the user and running process are the same.</p>
</blockquote>
<p>Since its open-sourced, you can also modify it if it does not suit your needs.</p>
