如何在 lambda 中使用 axios? [英] How can I use axios in lambda?

查看:56
本文介绍了如何在 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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆