RishavT / python-aws-lambda

Simple starter kit to create a demo AWS lamda app (along with a build script to create a .zip which can be uploaded)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python-aws-lambda

To create a new python lambda project, run $ create_lambda.sh <function_name> new

For example: $ create_lambda.sh tempfunction new

This will create the following folder structure:

<function_name (virtualenv)>
.. virtualenv directories..
--app
    --handler.py
--build.sh

To update the build.sh script of an existing lambda function, run the same thing without the new argument:

`$ create_lambda.sh <function_name>`

In amazon lambda console, provide handler.handler as function to be invoker.

To build, build.sh which will create a dist.zip which can then be uploaded.

All packages installed via pip will be included in the dist.zip

TODO List:

  • Add git support - automatic pulling from a git repo while project creation, and possibly support for git hooks in the future.
  • Add make support.
  • Build packages for distribution.
  • Make a server hostable version (which will be using git hooks).

About

Simple starter kit to create a demo AWS lamda app (along with a build script to create a .zip which can be uploaded)

License:GNU General Public License v3.0


Languages

Language:Shell 87.9%Language:Python 12.1%