Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kindlyops/lambda-clamav-layer
an AWS Lambda Layer with clamav binaries
https://github.com/kindlyops/lambda-clamav-layer
Last synced: 10 days ago
JSON representation
an AWS Lambda Layer with clamav binaries
- Host: GitHub
- URL: https://github.com/kindlyops/lambda-clamav-layer
- Owner: kindlyops
- License: apache-2.0
- Created: 2019-04-05T13:24:17.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-02-02T23:03:10.000Z (almost 3 years ago)
- Last Synced: 2024-08-02T06:13:36.134Z (3 months ago)
- Language: Shell
- Size: 28.3 KB
- Stars: 28
- Watchers: 6
- Forks: 17
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-layers - `kindlyops/lambda-clamav-layer`
README
# lambda-clamav-layer
An AWS Lambda Layer with `clamav` binaries
## building a fresh layer
To generate the layer, run
```shell
make build
```To inspect the contents of the zip file, run
```shell
unzip -vl build/lambda_layer.zip
```## Publishing the layer to your AWS environment
For convenience, a prebuilt zip is published as a github release for this
project, you can download it from the releases page.Then create a layer version, specifying the zip file:
```shell
make publish# specifying the region (default: us-west-1)
make publish REGION=ap-southeast-2
```To grant permissions to all accounts inside your organization to use the layer,
use these commands.First, find your organization ID:
```shell
aws organizations describe-organization
```Next, add a permission grant for this organization:
```shell
aws lambda add-layer-version-permission \
--layer-name clamav-antivirus \
--version-number 1 \
--statement-id allOrganizationAccounts \
--principal '*' \
--action lambda:GetLayerVersion \
--organization-id o-NNN
```