The documentation you are viewing is for Dapr v0.11 which is an older version of Dapr. For up-to-date documentation, see the latest version.

GCP Pub/Sub binding spec

Detailed documentation on the GCP Pub/Sub binding component

Setup Dapr component

kind: Component
  name: <NAME>
  namespace: <NAMESPACE>
  type: bindings.gcp.pubsub
  version: v1
  - name: topic
    value: topic1
  - name: subscription
    value: subscription1
  - name: type
    value: service_account
  - name: project_id
    value: project_111
  - name: private_key_id
    value: *************
  - name: client_email
  - name: client_id
    value: '1111111111111111'
  - name: auth_uri
  - name: token_uri
  - name: auth_provider_x509_cert_url
  - name: client_x509_cert_url
  - name: private_key
    value: PRIVATE KEY
  • topic is the Pub/Sub topic name.
  • subscription is the Pub/Sub subscription name.
  • type is the GCP credentials type.
  • project_id is the GCP project id.
  • private_key_id is the GCP private key id.
  • client_email is the GCP client email.
  • client_id is the GCP client id.
  • auth_uri is Google account OAuth endpoint.
  • token_uri is Google account token uri.
  • auth_provider_x509_cert_url is the GCP credentials cert url.
  • client_x509_cert_url is the GCP credentials project x509 cert url.
  • private_key is the GCP credentials private key.

Output Binding Supported Operations

  • create
Last modified July 7, 2022: update nav bar v0.11 (#2633) (b309d3d)