Closed ticatwolves closed 1 year ago
While deploying i am getting following erro
Running "serverless" from node_modules Framework Core: 3.28.1 (local) 3.1.1 (global) Plugin: 6.2.3 SDK: 4.3.2
services: test_core: path: test_core
serverless deploy --stage prod
Deploying to stage prod test_core › waiting test_core › deploying test_core › Running "serverless deploy --stage prod" test_core › Running "serverless" from node_modules test_core › Warning: Invalid configuration encountered test_core › at 'provider.deploymentBucket.name': must NOT have fewer than 3 characters test_core › at 'provider.deploymentBucket.name': must match pattern "(?!^(\d{1,3}\.){3}\d{1,3}$)(^(([a-z0-9]|[a-z0-9][a-z0-9-]*[a-z0-9])\.)*([a-z0-9]|[a-z0-9][a-z0-9-]*[a-z0-9])$)" test_core › at 'provider.vpc.securityGroupIds.0': unsupported string format test_core › at 'provider.vpc.subnetIds.0': unsupported string format test_core › test_core › Learn more about configuration validation here: http://slss.io/configuration-validation test_core › Deploying test to stage prod (ap-southeast-2) test_core › × Stack test-prod failed to deploy (0s) test_core › Environment: darwin, node 16.13.1, framework 3.28.1 (local) 3.1.1v (global), plugin 6.2.3, SDK 4.3.2 test_core › Credentials: Local, "default" profile test_core › Docs: docs.serverless.com test_core › Support: forum.serverless.com test_core › Bugs: github.com/serverless/serverless/issues test_core › Error: test_core › Error: ENOENT: no such file or directory, open '.serverless/requirements.txt' test_core › at Object.openSync (node:fs:585:3) test_core › at Object.readFileSync (node:fs:453:35) test_core › at module.exports (/Users/shobhit/Projects/aws_test/test.serverless/node_modules/sha256-file/index.js:24:19) test_core › at sha256Path (/Users/shobhit/Projects/aws_test/test.serverless/node_modules/serverless-python-requirements/lib/shared.js:134:10) test_core › at ServerlessPythonRequirements.zipRequirements (/Users/shobhit/Projects/aws_test/test.serverless/node_modules/serverless-python-requirements/lib/layer.js:16:23) test_core › at ServerlessPythonRequirements.tryCatcher (/Users/shobhit/Projects/aws_test/test.serverless/node_modules/bluebird/js/release/util.js:16:23) test_core › at Promise._settlePromiseFromHandler (/Users/shobhit/Projects/aws_test/test.serverless/node_modules/bluebird/js/release/promise.js:547:31) test_core › at Promise._settlePromise (/Users/shobhit/Projects/aws_test/test.serverless/node_modules/bluebird/js/release/promise.js:604:18) test_core › at Promise._settlePromiseCtx (/Users/shobhit/Projects/aws_test/test.serverless/node_modules/bluebird/js/release/promise.js:641:10) test_core › at _drainQueueStep (/Users/shobhit/Projects/aws_test/test.serverless/node_modules/bluebird/js/release/async.js:97:12) test_core › at _drainQueue (/Users/shobhit/Projects/aws_test/test.serverless/node_modules/bluebird/js/release/async.js:86:9) test_core › at Async._drainQueues (/Users/shobhit/Projects/aws_test/test.serverless/node_modules/bluebird/js/release/async.js:102:5) test_core › at Immediate.Async.drainQueues [as _onImmediate] (/Users/shobhit/Projects/aws_test/test.serverless/node_modules/bluebird/js/release/async.js:15:14) test_core › at processImmediate (node:internal/timers:464:21) test_core › 3 deprecations found: run 'serverless doctor' for more details test_core › error test_core › Error: test_core › Error: ENOENT: no such file or directory, open '.serverless/requirements.txt' test_core › at Object.openSync (node:fs:585:3) test_core › at Object.readFileSync (node:fs:453:35) test_core › at module.exports (/Users/shobhit/Projects/aws_test/test.serverless/node_modules/sha256-file/index.js:24:19) test_core › at sha256Path (/Users/shobhit/Projects/aws_test/test.serverless/node_modules/serverless-python-requirements/lib/shared.js:134:10) test_core › at ServerlessPythonRequirements.zipRequirements (/Users/shobhit/Projects/aws_test/test.serverless/node_modules/serverless-python-requirements/lib/layer.js:16:23) test_core › at ServerlessPythonRequirements.tryCatcher (/Users/shobhit/Projects/aws_test/test.serverless/node_modules/bluebird/js/release/util.js:16:23) test_core › at Promise._settlePromiseFromHandler (/Users/shobhit/Projects/aws_test/test.serverless/node_modules/bluebird/js/release/promise.js:547:31) test_core › at Promise._settlePromise (/Users/shobhit/Projects/aws_test/test.serverless/node_modules/bluebird/js/release/promise.js:604:18) test_core › at Promise._settlePromiseCtx (/Users/shobhit/Projects/aws_test/test.serverless/node_modules/bluebird/js/release/promise.js:641:10) test_core › at _drainQueueStep (/Users/shobhit/Projects/aws_test/test.serverless/node_modules/bluebird/js/release/async.js:97:12) test_core › at _drainQueue (/Users/shobhit/Projects/aws_test/test.serverless/node_modules/bluebird/js/release/async.js:86:9) test_core › at Async._drainQueues (/Users/shobhit/Projects/aws_test/test.serverless/node_modules/bluebird/js/release/async.js:102:5) test_core › at Immediate.Async.drainQueues [as _onImmediate] (/Users/shobhit/Projects/aws_test/test.serverless/node_modules/bluebird/js/release/async.js:15:14) test_core › at processImmediate (node:internal/timers:464:21) test_core ›
@ticatwolves address all the listed warnings, and I believe the eventual problems is related to used plugin and not to the Serverless Framework core. I'm moving it to discusionss
Are you certain it's a bug?
Are you using the latest version?
Is there an existing issue for this?
Issue description
While deploying i am getting following erro
Running "serverless" from node_modules Framework Core: 3.28.1 (local) 3.1.1 (global) Plugin: 6.2.3 SDK: 4.3.2
Service configuration (serverless-compose.yml) content
Command name and used flags
serverless deploy --stage prod
Command output