Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们有一台运行 RoR 应用程序的服务器。
我们希望将此应用程序连接到 S3 存储桶上传事件。就像文档上传到 S3 一样,我们在 RoR 中使用文件名或当前上传的文档来做魔术。
有人有这样的经历吗?
目前 Lambda 不支持 Ruby,但您可以将其用作 S3 到 RoR 用例的中间人。
只需编写一个接收 S3 事件的 Lambda 函数,使用该事件下载文件,然后向您的 RoR 应用程序发出请求并附上文件。从那里您可以正常进行任何处理。