Files
backstage/plugins/events-backend-module-aws-sqs/README.md
T
Patrick Jungermann d3ecb2382d feat(events/sqs): add a new AWS SQS event publisher
This change introduces a new plugin `@backstage/plugin-events-backend-module-aws-sqs`.

This plugin provides an event publisher which receives events from
(an) AWS SQS queue(s) and publishes them to the event broker.

The plugin supports the new backend-plugin-api and connects with the other plugins.

Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
2022-11-12 00:15:50 +01:00

1.4 KiB

events-backend-module-aws-sqs

Welcome to the events-backend-module-aws-sqs backend plugin!

This plugin is a module for the events-backend backend plugin and extends it with an AwsSqsConsumingEventPublisher.

This event publisher will allow you to receive events from an AWS SQS queue and will publish these to the used event broker.

Configuration

The polled AWS SQS queues depend on your configuration:

events:
  modules:
    awsSqs:
      awsSqsConsumingEventPublisher:
        topics:
          topicName1: # replace with actual topic name as expected by subscribers
            queue:
              url: 'https://sqs.us-east-2.amazonaws.com/123456789012/MyQueue'
              region: us-east-2
              # visibilityTimeout - as HumanDuration; defaults to queue-based config
              # waitTime - as HumanDuration; defaults to max of 20 seconds (long polling)
            # timeout - as HumanDuration; timeout for the task execution
            # waitTimeAfterEmptyReceive - as HumanDuration; time to wait before a retry when there was no message.
          topicName2:
            # [...]

Installation

  1. Install the events-backend plugin.
  2. Install this module
  3. Add your configuration.
# From your Backstage root directory
yarn add --cwd packages/backend @backstage/plugin-events-backend-module-aws-sqs