A sample repository for structuring Lambda functions for build/deploy
.
├── 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
In a new virtualenv:
make init
make test
make invoke
make build
ARN=arn:aws:lambda:us-west-2:111111111111:function:my-function-name make deploy