0.1.0 • Published 3 years ago
serverless-seda v0.1.0
SEDA serverless
Installation
sls plugin install -n serverless-sedaAdd the plugin to your serverless.yml file:
plugins:
- serverless-sedaAdd seda property at the function level:
functions:
app:
handler: main.seda
seda: trueExample
serverless.yml
frameworkVersion: '3'
service: example
provider:
name: aws
runtime: python3.9
functions:
app:
handler: main.seda
seda: true
plugins:
- serverless-sedamain.py:
from seda import Seda
seda = Seda()Deploy
SEDA deployment is triggered using the event hook after:deploy:deploy:
sls deploy...and removed using the hook before:remove:remove:
sls removeUse sls seda deploy|remove commands to manage SEDA resources without updating the service stack:
sls seda deployRemote Function Invocation
Run shell commands:
sls shell -f app --cmd envInvoke Python interpreter:
sls python -f app --cmd 'import sys;print(sys.version)'