serverless-leo
Serverless plugin. Deploy your leo bots and microservices using serverless.
Install serverless-leo
npm install --save-dev serverless-leo
Configure serverless.yml
plugins:
- serverless-leo
custom:
stage: ${opt:stage, 'dev'}
dev:
leoStack: TestBus # The name of your leo platform stack
test:
leoRegister: arn:aws:lambda:us-east-1:123456:function:TestBus-LeoInstallFunction-2IMP25UOQ64G # The arn for the LeoInstallFunction lambda in your leo platform stack. This is an alternative to using the leoStack variable. If the bus and lambda are in different accounts for example.
functions:
helloWorld:
handler: index.handler
leo:
source: helloWorldTestQueue
Deploy your microservice
Use the standard serverless deploy
cli command to deploy your microservice. Optional -s or -stage parameter (standard serverless).
Examples
Requires the leo platform (bus) for configuration. https://github.com/LeoPlatform/Leo