本文介绍了如何在 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?
发布评论