GcpPubSubPublisher
AI-generatedSummary
Publish each input item as a JSON message to a specified Google Cloud Pub/Sub topic within a given project.
Inputs
- Project ID (required) — The Google Cloud project identifier where the Pub/Sub topic resides.
- Topic Name (required) — The name of the Pub/Sub topic to which messages will be published.
Output shape
A list of items with each input item's JSON data augmented by a 'result' object indicating publish success and the message ID, or the original item with an error if publishing failed and the operation is set to continue on failure.
Requires valid Google Cloud service account credentials. If publishing a message fails for an item, the workflow can either stop with an error or continue to the next item depending on the node's error handling settings.
Examples
Example 1: Publishing messages to a Pub/Sub topic
Provide Project ID and Topic Name, connect a data source feeding items to publish, and provide GCP service account credentials.