简体   繁体   English

无服务器框架 AWS 部署

[英]Serverless Framework AWS deployment

I am trying to use the serverless framework to deploy a lambda function to AWS but run into this error when running serverless deploy --verbose我正在尝试使用无服务器框架将 lambda 函数部署到 AWS,但在运行serverless deploy --verbose时遇到此错误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

This is the first time deploying it.这是第一次部署它。

I have setup the region in the .yml file and have permissions on AWS, is there a way to change what S3 bucket that the deployment uses and point to an existing one?我已经在 .yml 文件中设置了区域并在 AWS 上拥有权限,有没有办法更改部署使用的 S3 存储桶并指向现有存储桶? I think that could be one of the issues.我认为这可能是问题之一。

We can provide a custom bucket for serverless using the plugin.我们可以使用插件为无服务器提供自定义存储桶。 Go through this linkuse custom bucket in serverless通过此链接在无服务器中使用自定义存储桶

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

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