如何在AWS S3上执行防病毒扫描 [英] how to perform antivirus scan on aws s3

查看:444
本文介绍了如何在AWS S3上执行防病毒扫描的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Web应用程序,用户将在该应用程序上载文件,Web服务器将其保存到S3,然后在以后处理它而不将其复制到本地服务器.
现在我的问题是,在处理文件之前,如何对存储在S3中的文件执行病毒扫描. 要求是使用完善的防病毒应用程序.

I am having a web application where user will upload file and web server will save it to S3 and then later on process it without copying it to local server.
Now my question is how can i perform virus scan on files stored in S3 before processing them.
Requirement is to use well established antivirus applications.

更新:2018年4月10日
到目前为止,还没有专业的防病毒系统可以直接在s3存储桶上进行扫描.我们最终在Windows/Linux机器上安装了防病毒软件,并创建了一个流程,在该流程中,我们首先将文件复制到临时文件夹,然后在扫描完成后再复制回S3.

Update:10/April/2018
Till date there is no professional antivirus system that can do scan on s3 bucket directly. We ended up installing antivirus on our windows/linux box and creating a flow where we copy files first to a temporary folder and then copying back to S3 once scan is done.

推荐答案

我会尝试使用Lambdas建立工作流程.在S3上传后,自动触发Lambda,该Lambda将文件复制到某个位置的/tmp/文件夹中(假定合适),进行病毒扫描,然后如果通过病毒扫描,则重新上传到S3中的单独存储桶/文件夹中.

I would try to establish a workflow with Lambdas. Upon S3 upload, automatically trigger a Lambda which copies the file to a /tmp/ folder somewhere (assuming it fits), virus scan it, and then if it passes the virus scan, re-upload into a separate bucket/folder in S3.

这篇关于如何在AWS S3上执行防病毒扫描的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆