JSPM

serverless-seda

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q8126F
  • License MIT

Serverless SEDA plugin

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

Test Coverage Package version

Installation

sls plugin install -n serverless-seda

Add the plugin to your serverless.yml file:

plugins:
  - serverless-seda

Add seda property at the function level:

functions:
  app:
    handler: main.seda
    seda: true

Example

serverless.yml

frameworkVersion: '3'
service: example

provider:
  name: aws
  runtime: python3.9

functions:
  app:
    handler: main.seda
    seda: true

plugins:
  - serverless-seda

main.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 remove

Use sls seda deploy|remove commands to manage SEDA resources without updating the service stack:

sls seda deploy

Remote Function Invocation

Run shell commands:

sls shell -f app --cmd env

Invoke Python interpreter:

sls python -f app --cmd 'import sys;print(sys.version)'