File size: 1,052 Bytes
55e4b0c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# Python Raven Vulnerability
## Setup
`python -m pip install --upgrade poetry` to install Poetry
## Lambdas
The project contains the following lambdas under the lambdas directory
* do-nothing-lambda
## Local Mode
* `make build` to resolve and install dependencies
* `make test` to execute the tests
* `make package` to create deployable zipped packages
* `make help` to see a list of all available commands
### Deploying the Lambda from Local
The Lambda should be deployed by publishing a new version to AWS which is referenced by the Lambda infrastructure using
the "live" alias, therefore deploying the Lambda is a two step process:
1. Publish a new version of the Lambda
`aws lambda update-function-code --function-name app-<lambda-name> --publish --zip-file fileb://<path to zip file>`
Note the Lambda version in the response.
2. Update the "live" alias
`aws lambda update-alias --function-name app-<lambda name> --name live --function-version <lambda version>`
The "live" alias is updated automatically when deploying through jules. |