Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

cisagov/assessment-data-import-lambda

Repository files navigation

assessment-data-import-lambda ƛ

GitHub Build Status Coverage Status Total alerts Language grade: Python Known Vulnerabilities

assessment-data-import-lambda contains code to build an AWS Lambda function that reads assessment data from a JSON file in an S3 bucket and imports it into a database.

Building the AWS Lambda zip file

Via a GitHub Release

This repository is configured with a GitHub Actions release workflow that will automatically generate the Lambda zip file whenever a new release is created. The assessment-data-import.zip file can be found in the list of assets attached to each release.

Manually

  1. cd ~/cisagov/assessment-data-import-lambda
  2. docker-compose down
  3. docker-compose build
  4. docker-compose up

Note

Please note that the corresponding Docker image must be rebuilt locally if the script build.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.

Contributing

We welcome contributions! Please see CONTRIBUTING.md for details.

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.