Package Exports
- serverless-seda
- serverless-seda/lib/seda.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (serverless-seda) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
SEDA serverless
A plugin to build Serverless Event-Driven Applications on AWS.
Examples: seda/templates
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)'