无服务器框架AWS部署



我试图使用无服务器框架将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存储桶并指向现有的存储桶?我认为这可能是问题之一。

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

编辑:您现在可以直接在无服务器中指定部署bucket,而无需任何插件。参考:https://www.serverless.com/framework/docs/providers/aws/guide/serverless.yml#deployment-桶

最新更新