# Node-red-contrib-google-cloud pubsub -- using topics from different project

**URL:** <https://discourse.nodered.org/t/node-red-contrib-google-cloud-pubsub-using-topics-from-different-project/54007>\
**Category:** General\
**Created:** [19 November 2021 16:47 UTC](https://discourse.nodered.org/t/node-red-contrib-google-cloud-pubsub-using-topics-from-different-project/54007 "2021-11-19T16:47:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zachsitka](https://avatars.discourse-cdn.com/v4/letter/z/858c86/32.png) [@zachsitka](https://discourse.nodered.org/u/zachsitka)\
**Post date:** [19 November 2021 16:47 UTC](https://discourse.nodered.org/t/node-red-contrib-google-cloud-pubsub-using-topics-from-different-project/54007/1 "2021-11-19T16:47:44Z")

</div>

We are using a node-red server in a different google cloud project than much of our other services. I would like to have some of our node red processes consume pubsub messages from a topic in one of those other projects. However, that does not seem to be a possibility. It looks like you can only specify the google cloud project as an environment variable on the server. But I can give the nodes credentials from different service accounts from another project.  
[node-red-contrib-google-cloud](https://flows.nodered.org/node/node-red-contrib-google-cloud)

Is there something I am missing? Can I get the pubsub nodes to subscribe and publish to a topic in a different project?

The only workaround I can come up with is a subscriber in the project hosting the topic that pushes the message to the node-red project either via http or a duplicative pubsub topic in the project hosting node-red.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [18 January 2022 16:48 UTC](https://discourse.nodered.org/t/node-red-contrib-google-cloud-pubsub-using-topics-from-different-project/54007/2 "2022-01-18T16:48:12Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
