1. Create a dedicated Service Account for PeerDB through Google Cloud Console and specify Pub/Sub Publisher

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

  2. Add a key to the above created service account

    Add Key to the Service Account

    Key Added to the Service Account

  3. 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.