1. Create a dedicated Service Account for PeerDB through Google Cloud Console and specify the following roles:
  • Pub/Sub Viewer : PeerDB requires this role to check if your provided topic exists.

  • Pub/Sub Publisher : PeerDB requires this role to publish messages to the topic.

    Create a dedicated Service Account For PeerDB and grant the necessary permissions

  1. Add a key to the above created service account

    Add Key to the Service Account

    Key Added to the Service Account

  2. Using this service account key create the peer using PeerDB UI

    Create PubSub Peer


PeerDB mirrors will automatically create topics if they don’t already exist, but you must create a subscription on the topic for messages to be retained.