mirror of
https://github.com/serverless/serverless.git
synced 2026-02-01 16:07:28 +00:00
918 B
918 B
Read this on the main serverless docs site
Google Cloud PubSub
Functions can be used as sinks for Knative Eventing event sources such as Google Cloud PubSub.
Here's how to setup a function as an event sink for the Google Cloud PubSub event source:
functions:
myFunction:
handler: gcr.io/knative-releases/github.com/knative/eventing-contrib/cmd/event_display:latest
events:
- gcpPubSub:
project: my-project
topic: my-topic