Pub/Sub

Core EE Pub/Sub feature allows you to publish processed messages to your Pub/Sub topics

Prerequisites

Usage

Specify desired topic in PUBSUB_TOPIC environment variable (make sure it exists)

Additionally, if you're using Docker, Kubernetes or custom service account with App Engine or Cloud grant pubsub.publisher role to that service account

Example

gcloud projects add-iam-policy-binding <your-project-id> --member serviceAccount:ushaflow-core-ee@<your-project-id>.iam.gserviceaccount.com --role roles/pubsub.publisher

Then, create a subscription to consume messages Reference: https://cloud.google.com/pubsub/docs/subscriberarrow-up-right

Last updated