Skip to content

Latest commit

 

History

History
40 lines (23 loc) · 1.78 KB

README.md

File metadata and controls

40 lines (23 loc) · 1.78 KB

Cookiecutter SAM for Python Lambda functions

A cookiecutter template to create a Serverless App based on Serverless Application Model (SAM) and Python 3.6

Requirements

Install cookiecutter command line: pip install cookiecutter or brew install cookiecutter using Homebrew

Usage

Generate a new SAM based Serverless App: cookiecutter gh:heitorlessa/cookiecutter-aws-sam-python

It's recommended to install this in a virtualenv, and the modern way to do it is to use pipenv for that.

Your serverless application should declare its dependencies in the generated requirements.txt.

Options

Option Description
include_apigw Includes sample code for API Gateway Proxy integration for Lambda and a Catch All method in SAM as a starting point
include_xray Includes both sample code for getting started with AWS X-Ray and adds necessary permission and Tracing to your function
include_safe_deployment Sends by default 10% of traffic for every 1 minute to a newly deployed function using CodeDeploy + SAM integration - Linear10PercentEvery1Minute

Advanced

Optionally, you can now generate a CI/CD pipeline by using the following cookiecutter cookiecutter gh:heitorlessa/cookiecutter-aws-sam-python-pipeline.

Credits

License

This project is licensed under the terms of the MIT License