@spritz-finance/eventbridge-sqs

0.0.5 • Public • Published

Serverless Eventbridge Sqs Lambda

This is a servless plugin which allows you to subscribe a lambda to an SQS queue which is driven by an EventBridge event

Table of Contents

Install

Run npm install in your Serverless project.

$ npm install --save-dev @spritz/eventbridge-sqs

Add the plugin to your serverless.yml file

plugins:
  - "@spritz/eventbridge-sqs"

Setup

Provide the lambda function with the eventBridgeSqs event

functions:
  processEvent:
    handler: handler.handler
    events:
      - eventBridgeSqs:
          eventBus: MyEventBusARN # Optional - by default will listen to the default bus
          pattern: # Optional - by default will listen to all events
            detail-type:
              - user.login
          batchSize: 1 # optional - default value is 1
          visibilityTimeout: 120 # optional (in seconds) - AWS default is 30 secs

plugins:
  - "@spritz/eventbridge-sqs"

Package Sidebar

Install

npm i @spritz-finance/eventbridge-sqs

Weekly Downloads

0

Version

0.0.5

License

MIT

Unpacked Size

26.1 kB

Total Files

9

Last publish

Collaborators

  • ohitslaurence
  • eliyahud