Queue provider: Google Pub/Sub
Creating a topic in Google Pub/Sub
This section describes how to create a new Topic in Google Pub/Sub. Please follow the steps below:
In a web browser, navigate to https://console.cloud.google.com/.
Click the menu next to the Google Cloud Platform header text.
![](../__attachments/3904998028/att_7_for_3897589833.jpeg?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
Select a project by checking its name and pressing the Open button.
![](../__attachments/3904998028/att_13_for_3897589833.jpeg?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
In the left-hand panel of the Products & Solutions menu, click ‘Analytics’ under Categories, then click Pub/Sub on the main page.
![](../__attachments/3904998028/att_22_for_3897589833.png?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
In the Topic page, press Create Topic. Complete the Topic Name field and press Create to save.
![](../__attachments/3904998028/att_8_for_3897589833.jpeg?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
![](../__attachments/3904998028/att_23_for_3897589833.png?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
Creating a subscription in Google Pub/Sub
This section describes how to create a new Subscription for a specific Topic. Please follow the steps below:
Go to the Topics page as documented in the previous section.
Select a topic from the list by double-clicking it.
![](../__attachments/3904998028/att_14_for_3897589833.jpeg?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
In the Topic Details, press Create Subscription. Complete the Subscription Name field then press Create to save.
![](../__attachments/3904998028/att_9_for_3897589833.jpeg?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
![](../__attachments/3904998028/att_24_for_3897589833.jpeg?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
Setting up Windows environment variables
This section describes how to setup the Google service account key (in JSON format) as the Windows environment variable GOOGLE_APPLICATION_CREDENTIALS. Please follow the steps below:
At the target computer, right-click ‘This PC’ and select Properties.
![](../__attachments/3904998028/att_15_for_3897589833.jpeg?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
Go to the Advanced Tab and click Environment Variables.
![](../__attachments/3904998028/att_16_for_3897589833.jpeg?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
![](../__attachments/3904998028/att_10_for_3897589833.jpeg?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
In System Variables, press the New button. Complete the fields below, then press OK to save.
![](../__attachments/3904998028/att_17_for_3897589833.jpeg?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
Restart the machine for the new setting to take effect.