简体   繁体   English

监控 S3 存储桶并持续下载任何新文件

[英]Monitoring a S3 bucket and downloading any new files continuously

Is there any way I can monitor a S3 bucket for any new files added to it using boto3?有什么方法可以监视 S3 存储桶中使用 boto3 添加到其中的任何新文件吗? Once a new file is added to the S3 bucket, it needs to be downloaded.将新文件添加到 S3 存储桶后,需要下载它。

My Python code needs to run on an external VMC Server, which is not hosted on an AWS EC2 instance.我的 Python 代码需要在未托管在 AWS EC2 实例上的外部 VMC 服务器上运行。 Whenever a vendor will push a new file to our public S3 bucket, I need to download those files to this VMC Server for ingestion in our on-prem databases/servers.每当供应商将新文件推送到我们的公共 S3 存储桶时,我需要将这些文件下载到此 VMC 服务器,以便在我们的本地数据库/服务器中摄取。 I can't access the VMC Server from AWS either, and neither is there any webhook available.我也无法从 AWS 访问 VMC 服务器,也没有任何可用的 webhook。

I have written the code for downloading the files, however, how can I monitor a S3 bucket for any new files?我已经编写了下载文件的代码,但是,如何监控 S3 存储桶中的任何新文件?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM