@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
- Install this module
- 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'));