All Projects → kindlyops → lambda-clamav-layer

kindlyops / lambda-clamav-layer

Licence: Apache-2.0 License
an AWS Lambda Layer with clamav binaries

Programming Languages

shell
77523 projects
Makefile
30231 projects

lambda-clamav-layer

An AWS Lambda Layer with clamav binaries

building a fresh layer

To generate the layer, run

make build

To inspect the contents of the zip file, run

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:

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:

aws organizations describe-organization

Next, add a permission grant for this organization:

aws lambda add-layer-version-permission \
    --layer-name clamav-antivirus \
    --version-number 1 \
    --statement-id allOrganizationAccounts \
    --principal '*' \
    --action lambda:GetLayerVersion \
    --organization-id o-NNN
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].