Hello,
I would like to trigger a cloud function when a message is publish in a pub/sub topic. However, the pub/sub topic is located on another project different from where the cloud function will be deployed.
What solution can I consider please ?
Navirash
Hello @Navirash ,Welcome on Google Cloud Community.
Under the project, where you have pub/sub topic, you must create PUSH subscription and provide Cloud Function URL as Endpoint URL.
https://cloud.google.com/pubsub/docs/create-push-subscription
Stackoverflow topic about kind similar question:
https://stackoverflow.com/questions/51093792/can-i-use-google-cloud-pub-sub-across-different-google-...
--
cheers,
DamianS
LinkedIn medium.com Cloudskillsboost
Hello @DamianS
The solution is not working when the Ingress parameter of the Cloud Run function is set to Internal. Do you have any other suggestions for a solution?
Best regards,
Ihssan