This is a basic project for deploying clean python-based serverless applications.
- make sure you have serverless running locally
- install pip:
pip install -r requirements.txt
- Scripts can be run directly, as long as PYTHONPATH includes the root directory of the repo
- Run it through serverless invoke:
serverless invoke local --function example --stage=local
-
If you want to interact with a VPC, you should run it as a regional lambda
- Regional lambdas need a NAT gateway to access the internet
-
Use the following command to deploy:
SLS_DEBUG=* sls deploy --stage "${BRANCH_NAME}" --git-commit $(git log --pretty=format:'%h' -n 1)