0

I am new to GCP, I have done some research to understand how a service in Project A can access a resource in Project B. I have an GAE in Project A that needs to publish on Pub/Sub Topic in Project B. I have found this Cross project management using service account but I am not sure if it does the same thing. Please advice.

toto'
  • 1,325
  • 1
  • 17
  • 36

1 Answers1

2

The section "Sample use case: cross-project communication" describes the exact scenario https://cloud.google.com/pubsub/docs/access-control

But most importantly the IAM role defined should be restrictive/appropriate to Project B's resource access

Prashant
  • 1,144
  • 8
  • 17
  • 28
  • thanks. One more thing: since service account are unique, when I add a service account (defined in a project) to another project I am actually referring to that same service account, right? – toto' Nov 02 '19 at 13:29
  • 1
    Should be. That's Because it has the project id associated with it. – Prashant Nov 02 '19 at 13:33