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