如何在本地测试AWS Lambda函数?

编程入门 行业动态 更新时间:2024-10-28 02:30:13
本文介绍了如何在本地测试AWS Lambda函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

请向我解释在本地测试lambda函数的最佳方法是什么.我使用sam local和此解决方案github/lambci/docker-lambda进行测试,但是例如,在发生另一个错误的情况下调用一个lambda的情况.通常,我无法为方法创建存根,因为lambda在容器中运行

Explain to me please what is the best way to locally test the lambda function. I used sam local and this solution github/lambci/docker-lambda for testing, but for example, where I invoke one lambda from another error occurs. In general, I can't make stubs for methods since lambda runs in a container

推荐答案

有两个选项.接下来的两个是一些受欢迎的.

There are a couple of options. Following two are some popular ones.

  • 无服务器框架以及服务器脱机 插入.
  • LocalStack
  • Serverless framework along with the serverless-offline plugin.
  • LocalStack

更多推荐

如何在本地测试AWS Lambda函数?

本文发布于:2023-11-28 09:20:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1641824.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:函数   测试   如何在   AWS   Lambda

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!