[英]How do I run a script that processes the contents of an s3 bucket?
I am looking to process a group of images that are located within an s3 bucket.我希望处理一组位于 s3 存储桶中的图像。 With the files located in a local folder, I can process all of the images in a folder at the same time.
使用位于本地文件夹中的文件,我可以同时处理文件夹中的所有图像。 I want to use the s3 bucket as a folder, and process all of the images inside.
我想将 s3 存储桶用作文件夹,并处理其中的所有图像。 I am using boto3 to access and manipulate buckets.
我正在使用 boto3 来访问和操作存储桶。 Is there a way I can use boto3 to do this?
有没有办法可以使用 boto3 来做到这一点?
No, you can't use boto as a folder.不,您不能将 boto 用作文件夹。 You will need a service to fetch the images from the bucket, process what you want to process, and upload them back to the bucket.
您将需要一项服务来从存储桶中获取图像、处理您想要处理的内容并将它们上传回存储桶。
It is very straightforward, AWS have several tutorials on the subject, like this one: Tutorial: Using AWS Lambda with Amazon S3这非常简单,AWS 有几个关于该主题的教程,例如: 教程:将 AWS Lambda 与 Amazon S3 结合使用
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.