如何在 lambda 中使用 axios?

编程入门 行业动态 更新时间:2024-10-09 13:33:39
本文介绍了如何在 lambda 中使用 axios?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我是否必须在本地安装 axios 模块,然后将其部署到 lambda,或者有没有办法通过内联代码编辑器以及浏览器来执行此操作?

Do I have to install the axios module locally and then deploy it to lambda or is there a way to do it through the inline code editor as well in the browser?

推荐答案

Lambda 实际上并没有为您捆绑包依赖项,除了 AWS 包,所以是的,您需要在本地安装它,将其压缩在一起并上传到 Lambda 控制台.

Lambda doesn't actually bundle your package dependencies for you, except the AWS package, so yes you'd need to install it locally, zip it together and upload to the Lambda console.

更多推荐

如何在 lambda 中使用 axios?

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

发布评论

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

>www.elefans.com

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