- It's extremely lightweight
- Deploy and invoke functions with one terminal command
- Get human-readable log from function invocation
To invoke a Lambda function, run this in your terminal:
lambdat invoke myFunctionName
You can skip the function name if you're in the code's directory, or have a lambdat.yml
(explained below):
lambdat invoke
To deploy:
lambdat deploy
-
Make sure you have python 3.6 installed
-
Clone this repo:
git clone [email protected]:myriasofo/lambdaTools
-
Install python modules
- Option 1: Installing globally:
pip3 install -r requirements.txt
- Option 2: Installing in a virtual environment:
python3 -m venv .venv source .venv/bin/activate pip3 install -r requirements.txt
- Option 1: Installing globally:
-
Create an alias for bash. In your
~/.bash_profile
, add this:alias lambdat='python3 ~/path/to/lambdat/__init__.py
-
Make sure to you've set up AWS creds. (For help, see: http://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/setup-credentials.html. Additionally, make your user has permission to access Lambda programmatically.)
You can add a lambda.yml
to to the directory of your lambda code. An example is provided in the repo. All you need is this line:
lambdaFunctionName: myFunctionName