无服务器框架AWS部署

时间:2020-10-21 09:04:47

标签: node.js aws-lambda serverless-framework

我正在尝试使用无服务器框架将lambda函数部署到AWS,但在运行serverless deploy --verbose时会遇到此错误

Serverless: Excluding development dependencies...
Serverless: Creating Stack...
Serverless: Checking Stack create progress...
CloudFormation - DELETE_IN_PROGRESS - AWS::CloudFormation::Stack - hello-world-dev
CloudFormation - DELETE_COMPLETE - AWS::S3::Bucket - ServerlessDeploymentBucket
CloudFormation - DELETE_COMPLETE - AWS::CloudFormation::Stack - hello-world-dev
Serverless: Stack create finished...
 
  Serverless Error ---------------------------------------

  Stack 'hello-world-dev' does not exist

这是第一次部署它。

我已在.yml文件中设置了区域并拥有对AWS的权限,是否可以更改部署使用的S3存储桶并指向现有的存储桶?我认为这可能是问题之一。

1 个答案:

答案 0 :(得分:1)

我们可以使用该插件为无服务器提供自定义存储桶。通过此链接use custom bucket in serverless