每天检查 S3 存储桶中摄取了多少文件
我有一个项目,每天都会将多个视频文件导入到某个 S3 存储桶中的某个目录中。该目录下面还会有其他文件夹,所以一般来说,我想看看与前一天相比,文件夹中总共增加了多少个单个文件。我需要在 CloudWatch 仪表板上显示它们。是否可以?
I have a project that will have several video files imported to a certain directory in a certain S3 bucket on a daily basis. That directory will have other folders underneath, so generally speaking, I want to see how many single files in total increased across the folders compared to the day before. I need to show them on a CloudWatch dashboard. Is it possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为最好的办法是安排每日 S3 库存,它会给您 1 个或多个显示整个存储桶的 CSV 文件。编写一个脚本来与前一天进行比较或按时间戳进行过滤。
https://docs.aws.amazon.com/AmazonS3/最新/userguide/storage-inventory.html
I think you best bet is to schedule a daily S3 inventory, it'll give you 1 or more CSV files that show the whole bucket. Write a script to compare against the previous day or filter on time stamp.
https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-inventory.html