无服务器框架部署在AWS上失败

时间:2018-11-06 19:03:20

标签: amazon-cloudformation serverless-framework aws-serverless

  

sls部署--verbose

我遇到了类似的问题

Serverless: Split stack started…
Serverless: Uploading CloudFormation file to S3…logStack.json
Serverless: Uploading CloudFormation file to S3…apiStack.json
Serverless: Uploading CloudFormation file to S3…permissionStack.json
Serverless: Uploading CloudFormation file to S3…
Serverless: Uploading artifacts…
Serverless: Uploading service .zip file to S3 (20.81 MB)…
Serverless: Validating template…
Serverless: Uploading CloudFormation file to S3…
Serverless: Uploading artifacts…
Serverless: Uploading service .zip file to S3 (20.81 MB)…
Serverless: Validating template…

The CloudFormation template is invalid: S3 error: Unable to get the object https://s3.amazonaws.com/folderName.../compiled-cloudformation-template.json

For debugging logs, run again after setting the “SLS_DEBUG=*” environment variable.

Your Environment Information -----------------------------
OS: linux
Node Version: 8.9.4
Serverless Version: 1.27.3

有一件事引起了我的注意,从错误消息之前的日志消息来看,compiled-cloudformation-template.json应该位于以s3.us-west-2.amazonaws而不是s3.amazonaws开头的URL

这是导致s3错误的问题。如果是这样,我该如何解决?如果不是,那么真正的问题是什么(这不是我第一次部署,而且之前我有过几次成功的经验)。

非常感谢您提供各种帮助。

0 个答案:

没有答案