Google Pub/Sub
Direction: MO & MT
Pub/Sub is an asynchronous and scalable messaging service within Google Cloud.
- Project ID - Unique Google Project Identifier
- MO Topic ID - The Topic Identifier
- Subscription ID - The Subscription Identifier
- Credentials - Google service account credentials JSON
Setup
Within your Google Cloud console, follow the following steps:
Create Topic
- To create a Google Pub/Sub topic go to the Pub/Sub section of Google Cloud
- Select the Create Topic button
- Follow the Create form naming the topic and setting desired options (Select the Add a default Subscription if required)
Create Subscription
- To create a subscription for a Topic, click on the desired Topic
- Select the Subscriptions section
- Select the Create Subscription Button
Topic Permissions
- On the Topics screen - select the actions section and click on the View Permissions option
- Click Add principal
- On this screen first you will need to select the required principal (probably name of your service account)
- Then you need to select the role the principal will have for the topic
- Click Save
Subscription Permissions
- To set the Subscriptions permissions select the relevant subscription and add the principal via the same method used for topics