未进行重大代码更改后,AWS Build Failing

时间:2019-07-29 17:11:15

标签: node.js reactjs lambda

我最近在我的react应用程序中添加了一些NPM软件包和导入行,以支持IE11兼容性。在添加这些更改之前,没有错误部署到AWS,但是此后,构建失败。这很奇怪,因为看起来很小的更改似乎都不会破坏构建。部署时出现此日志错误:

[Container] 2019/07/24 17:19:36 Running command export RELEASE=$CODEBUILD_RESOLVED_SOURCE_VERSION 

[Container] 2019/07/24 17:19:36 Running command npx serverless deploy --stage=$STAGE 
Serverless: Trying to create certificate for escal.dev.app.esports.one in us-east-1 ... 
Serverless: Certificate for escal.dev.app.esports.one in us-east-1 already exists with arn "arn:aws:acm:us-east-1:(...)". Skipping ... 
Serverless: 'escal.dev.app.esports.one' was created/updated. New domains may take up to 40 minutes to be initialized. 

  Error -------------------------------------------------- 

  Command failed: # Do not create a certificate for "prod" or "prod-admin" stages 
( (test "dev" = "prod" || test "dev" = "prod-admin") || sls create-cert --stage=dev) && 
sls create_domain --stage=dev && 
# Run build script with env vars defined in this config 
sls client build -p npm -c "run build" --stage=dev >/dev/null 


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

  Get Support -------------------------------------------- 
     Docs:          docs.serverless.com 
     Bugs:          github.com/serverless/serverless/issues 
     Issues:        forum.serverless.com 

  Your Environment Information ----------------------------- 
     OS:                     linux 
     Node Version:           8.11.0 
     Serverless Version:     1.32.0 


[Container] 2019/07/24 17:20:39 Command did not exit successfully npx serverless deploy --stage=$STAGE exit status 1 
[Container] 2019/07/24 17:20:39 Phase complete: BUILD State: FAILED 
[Container] 2019/07/24 17:20:39 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: npx serverless deploy --stage=$STAGE. Reason: exit status 1 
[Container] 2019/07/24 17:20:39 Entering phase POST_BUILD 
[Container] 2019/07/24 17:20:39 Uploading S3 cache... 
[Container] 2019/07/24 17:22:05 Phase complete: POST_BUILD State: SUCCEEDED

0 个答案:

没有答案