Skip to main content

GCP PubSub

Google Cloud Plaform Cloud Pub/Sub is an asynchronous and scalable messaging service that decouples services producing messages from services processing those messages. The GCP PubSub data destination on Golioth accepts data in any format and delivers it the specified topic. This example omits a content_type filter and accepts any data payload on any path, then delivers it to GCP PubSub.

Reminder

Make sure to create a secret named GCP_SERVICE_ACCOUNT that includes a valid GCP Service Account JSON Key with proper PubSub permissions.

filter:
path: "*"
steps:
- name: step-0
destination:
type: gcp-pubsub
version: v1
parameters:
service_account: $GCP_SERVICE_ACCOUNT
topic: projects/my-project/topics/my-topic