简体   繁体   English

如何将AWS Lambda连接到自制服务器?

[英]How do I connect AWS Lambda to homemade server?

I am looking for some help knowing what to research/look into for connecting an AWS Lambda function to a homemade server. 我正在寻找一些帮助,以了解将AWS Lambda函数连接到自制服务器需要研究/调查的内容。

I am building an Amazon Echo skill that uses AWS Lambda. 我正在构建使用AWS Lambda的Amazon Echo技能。 The end goal is to have the Echo skill get information from my server and contribute to a database sitting on the server. 最终目标是让Echo技能从我的服务器中获取信息,并为服务器上的数据库做出贡献。 I am using Nginx and Gunicorn to help serve my Flask application. 我正在使用Nginx和Gunicorn帮助服务于Flask应用程序。

Are there any tools or concepts I can look into to make this work? 我有什么工具或概念可以研究以完成这项工作吗? Currently, I am kind of lost and am seeing AWS Lambda and my server as two unique, silo-ed entities. 目前,我有点迷茫,并且将AWS Lambda和我的服务器视为两个唯一的,孤岛式实体。 But surely this isn't the case! 但是可以肯定的是事实并非如此!

Thank you for your help! 谢谢您的帮助!

You need to build an API on your server. 您需要在服务器上构建API。 Probably a REST API, or at least some HTTP endpoints on your Flask server that will accept some JSON data in the request. 可能是REST API,或Flask服务器上的至少一些HTTP端点,它们将在请求中接受一些JSON数据。 Then your Lambda function will make HTTP requests to your server to interact with it. 然后,您的Lambda函数将向您的服务器发出HTTP请求以与其进行交互。

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

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