serverless-components solve the problem
Serviceless - cli tool on top of Serverless framework, that simplifies workflow with multiple services.
- Install serverless framework
npm install serverless -g- Install serviceless cli
npm install serviceless -g- Deploy
slx deploy allslx deploy allslx deploythen select service or folder from the list.
slx deploy <query>Every serverless option that you set will be propagated to the sls deploy command accordingly:
slx deploy all --stage prod --region eu-central-1will deploy to prod stage and eu-central-1 region.
slx will share all enviroment variables with serverless process, so
MY_SECRET=foo slx deploy allwill be injected into serverless config.
-b, --runInBand - deploy services one by one (parallel by default)
-e, --exitOnFailure - stop deployment of other services on failure
-r, --rollbackOnFailure - rollback services on deployment failure
Makes sense to spar with --exitOnFailure flag to stop on failure and rollback.
-v, --verbose - show serverless output
slx --help
slx deploy --help- add option to rollback to previous state on fail
- aggregate logs for multiple services
- add configuration file to deploy in band services that rely on each other
- save and restore
.serverlessfolders to use as deployment artifacts for CI/CD tools
Yes, please!
Clone repo, then
npm install
npm testMIT @ Pavel Vlasov

