2019-11-08 09:44:36 +01:00

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