Framework-free development lifecycle example for AWS CloudFormation (with SAM) incl. Python Lambdas
To make a local Python virtual env and install dependencies specified in requirements.txt:
$ make activate
$ make install
Custom parameters defined in your CloudFormation template can have overrides specified in template_params.txt.
Before deployment your Lambda code is uploaded to your deployment bucket using the AWS CLI package command.
$ make package
$ make deploy
I've also added shortcuts for running tests, i.e. make test
and make watch
, which
can of course be used in a CI environment as well.