serverless-clamav-lambda-layer
serverless-clamav-lambda-layer copied to clipboard
A ClamAV Lambda Layer built with Docker and managed with Serverless
AWS ClamAV Layer & a service using it to scan files
Getting started
- Clone this repo
- Run
npm install - Build the clamav lamber layer
bash ./build
Maintenance
Code formatting
To format your code and make it easier to read:
- run
npm format
Dependency checking
To ensure you have the latest versions of dependencies and check for unused dependencies:
- run
npm-check
Deploying
Deployment can be done through your CI/CD process, or via command line:
- run
sls deploy --aws-profile <your_aws_profile>
Unit Tests
There's only one unit test for our handler, but to run it you'll need to install the devDependencies
- run
npm i - run
npm run test