简体   繁体   English

无法从另一个本地运行的应用程序调用本地运行的 lambda

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

相关问题 本地运行lambda时知道 - Know when running lambda locally 在本地运行 CDK API - Lambda function 在本地不起作用 - Running CDK API Locally - Lambda function doesn't work locally 使用 docker 在本地运行时出现问题 - Problem with running locally with dockers 在本地运行多个 Azure 函数 - Running multiple Azure Functions locally 在本地运行现有的 AWS Lambda - Running existing AWS Lambdas locally 如果应用程序在本地运行,在出站呼叫的 StatusCallback 中设置什么 - What to Set in StatusCallback on an outbound call if the application running locally docker 在我的 Mac 上启动并运行,但“sam local invoke”命令导致错误:在本地运行 AWS SAM 项目需要 Docker - docker up and running on my Mac but "sam local invoke" command results in Error: Running AWS SAM projects locally requires Docker 在 Fedora 32 上使用 AWS SAM 命令在本地运行 lambda function 时出现问题。Docker 问题 - Problem running lambda function locally with AWS SAM command on Fedora 32. Docker problem 具有本地运行的谷歌功能的谷歌 firebase 数据库 - Google firebase database with google functions running locally 从nodejs中的aws lambda调用在本地主机上运行的api - Invoke api running on localhost from aws lambda in nodejs
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM