[英]Cannot invoke a locally running lambda from another locally running application
I have a sails.js
backend application and a serverless lambda
function. Both are running in the local machine for development purposes, I want to invoke
the local running lambda function from the sails.js
application, I can use aws-sdk
in the sails application, but could it work?我有一个
sails.js
后端应用程序和一个serverless lambda
function。两者都在本地机器上运行用于开发目的,我想从sails.js
应用程序invoke
本地运行 lambda function,我可以在 sails 中使用aws-sdk
应用程序,但它可以工作吗? Is there any way that I can invoke the local lambda from another locally running application?有什么方法可以从另一个本地运行的应用程序调用本地 lambda 吗?
You can do that with serverless-offline plugin.您可以使用无服务器离线插件来做到这一点。 It's pretty well described here https://www.npmjs.com/package/serverless-offline#usage-with-invoke
这里描述得很好https://www.npmjs.com/package/serverless-offline#usage-with-invoke
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.