简体   繁体   English

将文件放在S3存储桶中时,如何在AWS EC2实例上触发python脚本? (没有Lambda)

[英]How to trigger a python script on a AWS EC2 instance when a file is placed in S3 bucket? (No Lambda)

We have a requirement to trigger a python script that is on AWS EC2 instance when a file arrives in a S3 bucket. 当文件到达S3存储桶中时,我们需要触发AWS EC2实例上的python脚本。 we were told not to use AWS Lambda. 我们被告知不要使用AWS Lambda。 Please share the options available to trigger. 请分享可触发的选项。

Take a look at How Do I Enable and Configure Event Notifications for an S3 Bucket? 看一看如何为S3存储桶启用和配置事件通知? for all S3 event options. 所有S3事件选项。

You can trigger SNS, SQS, or Lambda. 您可以触发SNS,SQS或Lambda。 You'll have to consider what approach you want to take with SNS or SQS. 您必须考虑要对SNS或SQS采取哪种方法。 Try something like long polling SQS from a process running on your EC2 instance. 尝试从EC2实例上运行的进程中对SQS进行长时间轮询。

暂无
暂无

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

相关问题 将新的 object 添加到 s3 存储桶时,如何触发 ec2 实例和 python 脚本? - How to trigger ec2 instance and a python script inside when a new object is added to s3 bucket? 如何使用 AWS Lambda 函数将文件从 S3 存储桶复制到 EC2 Windows 实例 - How to copy a file from S3 bucket to an EC2 Windows instance using AWS Lambda function 如何使用 lambda function 将文件从 s3 存储桶复制到 ec2 实例? - How do I copy a file from s3 bucket to ec2 instance using lambda function? 在 EC2 上运行存储在 AWS S3 存储桶中的 Python 脚本并将结果文件保存回 S3 存储桶 - Run a Python Script Stored in an AWS S3 Bucket on EC2 and Save Resulting File Back into S3 Bucket 当任何文件上传到 s3 存储桶时,如何在 AWS EC2 中使用 ClamAV Antivirus 扫描 S3 存储桶 object? - How to use ClamAV Antivirus in AWS EC2 for scanning S3 Bucket object when any file uploaded to s3 bucket? 如何使用 AWS Lambda 函数将文件从 AWS S3 存储桶复制到 EC2 linux 机器 - How to copy files from AWS S3 bucket to EC2 linux machine using AWS Lambda Functions 可以访问S3存储桶以流式传输视频的AWS EC2实例 - AWS EC2 instance with access to S3 bucket for streaming a video AWS将S3存储桶与EC2实例同步 - AWS Synchronize S3 bucket with EC2 instance 重启 EC2 实例后 AWS S3 存储桶未重新挂载 - AWS S3 bucket is not remounting after restarting EC2 Instance 每当我在 s3 上获得新视频文件时,如何将 s3 存储桶视频文件连接到 ec2 实例并在 ec2 上自动运行 python 脚本? - How do i connect s3 bucket video files to ec2 instance and run python script on ec2 automatically whenever i get new video files on s3?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM