Skip to content

A sample repository for structuring Lambda functions for build/deploy

License

Notifications You must be signed in to change notification settings

TriNimbus/lambda-package-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lambda-package-template

Build Status

A sample repository for structuring Lambda functions for build/deploy

Directory Structure

.
├── Makefile                           # Definition of `make` targets.
├── builds                             # Builds directory.
│   ├── deploy-2016-08-15_16-50.zip
│   └── deploy-2016-08-15_16-54.zip
├── index.py                           # Entry point for the Lambda function.
├── lambda_package                     # Python package `lambda_package`.
│   ├── __init__.py
│   ├── localcontext.py
│   ├── utility.py
├── requirements                       # External dependencies.
│   ├── common.txt
│   ├── dev.txt
│   └── lambda.txt
└── tests                              # Unit tests for the package.
    ├── __init__.py
    └── lambda_package
        ├── __init__.py
        ├── test_localcontext.py
        └── test_utility.py

Initial Setup

In a new virtualenv:

git clone https://github.com/TriNimbus/lambda-package-template
cd lambda-package-template
make init

Run tests

make test

Invoke the function locally

make invoke

Build a package for Lambda

make build

Deploy latest build to a Lambda ARN

ARN=arn:aws:lambda:us-west-2:111111111111:function:my-function-name make deploy

About

A sample repository for structuring Lambda functions for build/deploy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published