简体   繁体   English

如何从AWS上托管的Django项目运行本地python脚本?

[英]How to run a local python script from django project hosted on aws?

我要求运行一个本地python脚本,该脚本会引起争论,并将通过aws上托管的python代码在本地Windows计算机上运行。

Well, you simply need to find a way for the two of them to communicate without opening huge security holes. 好吧,您只需要找到一种方法,使他们两个在不打开安全漏洞的情况下进行通信即可。

My suggestion would be a message queue (rabbit MQ, amazon SQS). 我的建议是建立一个消息队列(兔子MQ,亚马逊SQS)。 The aws application writes jobs to the message queue and a local script runs the worker which is waiting for messages to be written to the queue for it to pick up. aws应用程序将作业写入消息队列,然后本地脚本运行工作程序,该工作程序正在等待将消息写入队列以供其拾取。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM