serverless: sls deploy is not working, doesn't upload package
Bug Report
Description
What did you do?
try to deploy lambdas to AWS I am using serverless version 1.67.0 I execute command
sls deploy
What happened?
serverless will package my app but it stops after packaging is done, see terminal out
Serverless: Package took [14993 ms]
Done in 28.31s.
there are no errors it just stops there
What should’ve happened?
It should have contiued with uploading the package to the AWS cloud, it should look like this in the terminal:
...
Serverless: Uploading CloudFormation file to S3...
Serverless: Uploading artifacts...
Serverless: Uploading service .zip file to S3 (43.68 MB)...
Serverless: Validating template...
Serverless: Updating Stack...
Serverless: Checking Stack update progress...
...
What’s the content of your serverless.yml file?
# serverless.yml
service: bill-payments-api
plugins:
- serverless-webpack
- serverless-offline
- serverless-mocha-plugin
- serverless-domain-manager
provider:
name: aws
runtime: nodejs10.x
stage: ${opt:stage, 'local'} # default stage, DON'T deploy 'local'
region: us-east-2
...
What’s the output you get when you use the SLS_DEBUG=* environment variable (e.g. SLS_DEBUG=* serverless deploy)
$ sls deploy -v --stage qa
Serverless: Load command interactiveCli
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command config:tabcompletion
Serverless: Load command config:tabcompletion:install
Serverless: Load command config:tabcompletion:uninstall
Serverless: Load command create
Serverless: Load command install
Serverless: Load command package
Serverless: Load command deploy
Serverless: Load command deploy:function
Serverless: Load command deploy:list
Serverless: Load command deploy:list:functions
Serverless: Load command invoke
Serverless: Load command invoke:local
Serverless: Load command info
Serverless: Load command logs
Serverless: Load command metrics
Serverless: Load command print
Serverless: Load command remove
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command slstats
Serverless: Load command plugin
Serverless: Load command plugin
Serverless: Load command plugin:install
Serverless: Load command plugin
Serverless: Load command plugin:uninstall
Serverless: Load command plugin
Serverless: Load command plugin:list
Serverless: Load command plugin
Serverless: Load command plugin:search
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command upgrade
Serverless: Load command uninstall
Serverless: Load command webpack
Serverless: Load command offline
Serverless: Load command offline:start
Serverless: Load command create
Serverless: Load command create:test
Serverless: Load command create:function
Serverless: Load command invoke
Serverless: Load command invoke:test
Serverless: Load command create_domain
Serverless: Load command delete_domain
Serverless: Load command login
Serverless: Load command logout
Serverless: Load command generate-event
Serverless: Load command test
Serverless: Load command dashboard
Serverless: Load command output
Serverless: Load command output:get
Serverless: Load command output:list
Serverless: Load command param
Serverless: Load command param:get
Serverless: Load command param:list
Serverless: Load command dev
...
Serverless: Invoke deploy
Serverless: Invoke package
Serverless: Invoke aws:common:validate
Serverless: Invoke aws:common:cleanupTempDir
Serverless: Invoke webpack:validate
Serverless: Using configuration:
{
"packager": "yarn",
"webpackConfig": "webpack.config.js",
"includeModules": {
"forceExclude": [
"aws-sdk"
],
"forceInclude": [
"pg",
"pg-hstore"
]
},
"packagerOptions": {},
"keepOutputDirectory": false
}
Serverless: Removing /var/...../api/.webpack
Serverless: Invoke webpack:compile
Serverless: Bundling with Webpack...
Time: 6252ms
Built at: 03/24/2020 5:17:51 PM
Asset Size Chunks Chunk Names
src/controller/authorizer.js 19 KiB 0 [emitted] src/controller/authorizer
src/controller/.....Controller.js 60.3 KiB 1 [emitted] src/controller/.....Controller
src/controller/.....Controller.js 91.2 KiB 2, 1 [emitted] src/controller/.....Controlle
src/controller/warmup.js 2.17 KiB 3 [emitted] src/controller/warmup
src/jwks/jwks-prod.json 1.02 KiB [emitted]
src/jwks/jwks-test.json 1.02 KiB [emitted]
Entrypoint src/controller/.....Controller = src/controller/.....Controller.js
Entrypoint src/controller/.....Controller = src/controller/.....Controller.js
Entrypoint src/controller/authorizer = src/controller/authorizer.js
Entrypoint src/controller/warmup = src/controller/warmup.js
[0] external "@...../common" 42 bytes {0} {1} {2} {3} [built]
[5] external "sequelize" 42 bytes {1} {2} [built]
[6] external "babel-runtime/regenerator" 42 bytes {0} {1} {2} [built]
[7] external "babel-runtime/helpers/asyncToGenerator" 42 bytes {0} {1} {2} [built]
[8] external "babel-runtime/core-js/json/stringify" 42 bytes {0} {1} {2} {3} [built]
[9] ./src/utils/Errors.js 11.9 KiB {0} {1} {2} [built]
[10] external "babel-runtime/helpers/toConsumableArray" 42 bytes {1} {2} [built]
[11] ./src/model/ApiResponseCode.js 2.48 KiB {0} {1} {2} [built]
[13] external "babel-runtime/core-js/get-iterator" 42 bytes {0} {1} {2} [built]
[14] ./src/model/ApiErrorResponse.js 1.35 KiB {0} {1} {2} [built]
[15] ./src/model/ApiErrorCause.js 3.6 KiB {0} {1} {2} [built]
[39] ./src/controller/.....Controller.js 17.1 KiB {1} {2} [built]
[64] ./src/controller/.....Controller.js 55.9 KiB {2} [built]
[75] ./src/controller/authorizer.js 13.9 KiB {0} [built]
[81] ./src/controller/warmup.js 1.95 KiB {3} [built]
+ 67 hidden modules
Serverless: Invoke webpack:package
Serverless: Fetch dependency graph from /var/...../api/package.json
Serverless: Excluding external modules: aws-sdk@^2.251.1
Serverless: Package lock found - Using locked versions
Serverless: Packing external modules: @...../common@file:../common, babel-runtime@^6.26.0
, jwk-to-pem@^2.0.1, sequelize@^4.40.0, luxon@^1.3.3, slugid@^2.0.0, joi@^13.4.0, soap@^0.24.0, u
@^3.1.9-1, pg@^7.4.3, pg-hstore@^2.3.2
Serverless: Package took [14993 ms]
Done in 28.31s.
Notes
sls deploy with serverless version 1.35.1 works fine
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 3
- Comments: 16 (8 by maintainers)
-vis shortcut for--version, so you’ll get just version output, no matter what command use use.in v2
-valso worked as shortcut for--verbosein some commands, yet that was removed with v3 to avoid ambinuguity (as--versionis a global flag… so it was surprising-vworks differently with different commands when--versionis always supported)