简体   繁体   English

如何运行处理 s3 存储桶内容的脚本?

[英]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.

相关问题 如何运行AWS S3存储桶中的python脚本和文件 - How do I run a python script and files located in an aws s3 bucket 如何在S3中使用Boto3一次创建存储桶和多个子文件夹? - How do I create a bucket and multiple subfolders at once with Boto3 in s3? 如何通过解析 object 密钥作为参数从 S3 存储桶下载文件? - How do I download file from S3 bucket by parsing the object key as a parameter? 如何创建预签名 URL 以使用 Boto3 从 S3 存储桶下载文件? - How do I create a Presigned URL to download a file from an S3 Bucket using Boto3? 如何使用Boto在Amazon S3上使用python脚本将文件从一个存储桶复制到另一个存储桶 - How to use python script to copy files from one bucket to another bucket at the Amazon S3 with boto 如何使用boto3(或其他Python)列出_RequesterPays_ S3存储桶的内容? - How to use boto3 (or other Python) to list the contents of a _RequesterPays_ S3 bucket? 无需 AWS 凭证即可获取可公开访问的 S3 存储桶内容 - Get publicly accessible contents of S3 bucket without AWS credentials 将新的 object 添加到 s3 存储桶时,如何触发 ec2 实例和 python 脚本? - How to trigger ec2 instance and a python script inside when a new object is added to s3 bucket? 每当新数据加载到 s3 存储桶中时,如何触发 python 脚本? - How to trigger a python script whenever new data is loaded into a s3 bucket? 如何加速 s3 存储桶对象过滤器 - How to speedup s3 bucket object filter
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM