简体   繁体   English

在AWS上部署Lambda应用程序

[英]Deploying lambda applications on AWS

I am writing AWS Lambda functions for my project (node) and now trying to figure out the best way to deploy these. 我正在为我的项目(节点)编写AWS Lambda函数,现在试图找出部署这些函数的最佳方法。 Ideally I would want to 理想情况下,我想

  1. Convert the ES7 code into a version lambda can understand possibly using webpack. 使用webpack将ES7代码转换为lambda可以理解的版本。
  2. Deploy using a command line tool or some npm package. 使用命令行工具或某些npm软件包进行部署。

What is the best way to get this done? 完成这项工作的最佳方法是什么?

You can use serverless and serverless-webpack to do both of those. 您可以使用serverlessserverless-webpack来完成这两个任务。

serverless is a deployment and configuration tool. serverless是一种部署和配置工具。

serverless-webpack is a plugin for serverless that will compile your ES7 code upon deployment. serverless-webpack是一个插件, serverless ,将在部署时编译ES7代码。

Either you canzip it and upload it or you can use automate the deployment with AWS CodePipelne. 您可以将其压缩并上载,也可以通过AWS CodePipelne使用自动化部署。 Please see here more details about automated deployment 在此处查看有关自动部署的更多详细信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM