Single Pub Sub Topic for Multiple Projects
Single Pub Sub Topic for Multiple Projects?
To create a sink that publishes to a Cloud Pub/Sub topic in a different project (you would need to grant Project A's Service Account access to Project B)
-
- Log in to your GCP environment and go to the project for which you want to create this sink --> Exports --> Fill out Sink Name, Service (Pub Sub), Destination (Pub Sub in a different project).
- API used is - pubsub.googleapis.com/projects/<project-id>/topics/<topic_name> ( <project-id> is the host project containing the centrally shared topic)
What if I only need specific log types exported (or logs at a folder/project level)?
See Configuring Export Sink Filters.
Need an experienced AWS/GCP/Azure Professional to help out with your Public Cloud Strategy? Set up a time with Anuj Varma.
Leave a Reply