Used the framework https://github.com/aws/chalice to build serverless AWS lambda api.
Chalice is a python framework, so used python to build this app. The github page for chalice has some great tutorials. Also, documentation is available at http://chalice.readthedocs.io/en/latest/.
The code used to test out the idea is as follows:
We can see the following results:
Future work:
Use Zappa to build a Flask serverless microservice. Use Zappa to build a Django serverless macroservice. Zappa is available at https://github.com/Miserlou/Zappa
Use serverless for building serverless app across AWS and GCP Serverless is available at https://github.com/serverless/serverless