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

tepez/lambda-clamav-layer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lambda-clamav-layer

an AWS Lambda Layer with clamav binaries

building a fresh layer

To generate the layer, run

dockerbuild.sh

To inspect the contents of the zipfile, 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:

aws lambda publish-layer-version --layer-name clamav-antivirus \
    --zip-file fileb://build/lambda_layer.zip

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

About

an AWS Lambda Layer with clamav binaries

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%