Is there a way to accomplish the follow? <https://...
# google-cloud
c
Is there a way to accomplish the follow? https://cloud.google.com/run/docs/tutorials/pubsub#integrating-pubsub I want to trigger a cloud run service when a topic message is published. I easily got this going (from examples) for cloud functions, but wondering how I can do the same for a cloud run service that will be exposing endpoints.
was able to accomplish this with the following
Copy code
const topicSubscription = new gcp.pubsub.Subscription('sub', {
  pushConfig: {
    oidcToken: {
      serviceAccountEmail:
        <mailto:'x@appspot.gserviceaccount.com|'x@appspot.gserviceaccount.com>',
    },
    pushEndpoint: apiServiceUrl,
  },
  topic: topic.id,
});