1

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 应该在 URL 中以 s3.us-west-2.amazonaws 而不是 s3.amazonaws 开头

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

感谢任何形式的帮助。

4

0 回答 0