Skip to content

myriasofo/lambdaTools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Why use this?

  • It's extremely lightweight
  • Deploy and invoke functions with one terminal command
  • Get human-readable log from function invocation

To use

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

To install

  1. Make sure you have python 3.6 installed

  2. Clone this repo:

    git clone [email protected]:myriasofo/lambdaTools
    
  3. 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
      
  4. Create an alias for bash. In your ~/.bash_profile, add this:

    alias lambdat='python3 ~/path/to/lambdat/__init__.py
    
  5. 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.)

Advanced usage

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

About

Deploy to AWS Lambda with one terminal command

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages