lambda_functions
is a tool for building environment zip files for
scan types to be run in AWS Lambda
via the cisagov
fork of
18F's domain-scan
.
Building the environment zip files for all scanners and deploying them
to AWS Lambda using domain-scan
:
cd ~/cisagov/lambda_functions
docker-compose build
docker-compose up
cp *.zip ~/cisagov/domain-scan/lambda/envs/
cd ~/cisagov/domain-scan
./lambda/deploy pshtt --create
./lambda/deploy sslyze --create
./lambda/deploy trustymail --create
Building the pshtt
environment zip file and deploying it to AWS
Lambda using domain-scan
:
cd ~/cisagov/lambda_functions
docker-compose build build_pshtt
docker-compose up build_pshtt
cp pshtt.zip ~/cisagov/domain-scan/lambda/envs/
cd ~/cisagov/domain-scan
./lambda/deploy pshtt --create
Please note that the corresponding Docker image must be rebuilt
locally if the script <scanner>/build_<scanner>.sh
changes. Given
that rebuilding the Docker image is very fast (due to Docker's
caching) if the script has not changed, it is a very good idea to
always run the docker-compose build
step when using this tool.
This project is in the worldwide public domain.
This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.
All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.