Giter Site home page Giter Site logo

refayathaque / lambda_functions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cisagov/lambda_functions

0.0 1.0 0.0 136 KB

Generate AWS Lambda environment zip files for use by 18F/domain-scan

License: Creative Commons Zero v1.0 Universal

Shell 93.10% Dockerfile 6.90%

lambda_functions's Introduction

lambda_functions โ˜๏ธ ๐Ÿง

Build Status

lambda_functions is a tool for building environment zip files for scan types to be run in AWS Lambda via 18F's domain-scan.

Examples

All scanners

Building the environment zip files for all scanners and deploying them to AWS Lambda using domain-scan:

  1. cd ~/cisagov/lambda_functions
  2. docker-compose build
  3. docker-compose up
  4. cp *.zip ~/18F/domain-scan/lambda/envs/
  5. cd ~/18F/domain-scan
  6. ./lambda/deploy pshtt --create
  7. ./lambda/deploy sslyze --create
  8. ./lambda/deploy trustymail --create

One scanner

Building the pshtt environment zip file and deploying it to AWS Lambda using domain-scan:

  1. cd ~/cisagov/lambda_functions
  2. docker-compose build build_pshtt
  3. docker-compose up build_pshtt
  4. cp pshtt.zip ~/18F/domain-scan/lambda/envs/
  5. cd ~/18F/domain-scan
  6. ./lambda/deploy pshtt --create

Note

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.

License

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.