简体   繁体   English

使用boto在存储桶/前缀中更改AWS S3

[英]AWS S3 changes in a bucket / prefix using boto

What is the most efficient way (ie lower cost :) to check for any changes to a bucket according to a prefix? 根据前缀检查存储桶的任何更改的最有效方法(即较低的成本:)是什么?

In other words, is there a way to check if there were new/updated/deleted files in a bucket with said files stored according to a prefix? 换句话说,有没有办法检查存储桶中是否有新文件/更新文件/已删除文件,并且这些文件是根据前缀存储的?

Found a possible solution (this feature is currently in beta it seems): Bucket Logging. 找到了可能的解决方案(此功能目前处于beta版):存储桶记录。

Easy to setup using the AWS Console. 易于使用AWS控制台进行设置。

Note that the delay for availability of the logs isn't too good (for some applications at least): took 1/2hour during my first test. 请注意,日志可用性的延迟不太好(至少对于某些应用程序而言):在我的第一次测试中花费了1/2小时。

Some documentation available here . 一些文档可以在这里找到

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

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