Files
backstage/plugins/events-backend-module-google-pubsub
github-actions[bot] d57a6f7828 Version Packages (next)
2025-06-03 13:12:47 +00:00
..
2025-06-03 13:12:47 +00:00
2025-06-03 13:12:47 +00:00

@backstage/plugin-events-backend-module-google-pubsub

This package is a module for the events-backend backend plugin and extends the events system with Google Pub/Sub related capabilities.

Configuration

The following configuration enables the transfer of messages from a Google Pub/Sub subscription into a topic on the Backstage events system.

events:
  modules:
    googlePubSub:
      googlePubSubConsumingEventPublisher:
        subscriptions:
          # A unique key for your subscription, to be used in logging and metrics
          mySubscription:
            # The fully qualified name of the subscription
            subscriptionName: 'projects/my-google-project/subscriptions/github-enterprise-events'
            # The event system topic to transfer to. This can also be just a plain string
            targetTopic:
              # This example picks the topic name from a message attribute + a prefix
              fromMessageAttribute:
                attributeName: 'x-github-event'
                withPrefix: 'github.'

Installation

  1. Install this module
  2. Add your configuration.
# From your Backstage root directory
yarn --cwd packages/backend add @backstage/plugin-events-backend-module-google-pubsub
// packages/backend/src/index.ts
backend.add(import('@backstage/plugin-events-backend-module-google-pubsub'));