Usecase: Scan a uploaded file on s3 using AWS Lambda.
Issue: While downloading the file for scanning using ClamAV in the lambda function, I run into "No space left on device" when the file is > 500MB.
I tried the below two ways
- Mount a file system like S3 or EFS on lambda so clamav can directly scan. - Feature yet not available.
- ClamAV scans the memory after the file is read from S3. - Doesn't look its supported.
Is there any other recommended way to get around it?