The documentation you are viewing is for Dapr v1.12 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

Component format

To setup GCP Pub/Sub binding create a component of type bindings.gcp.pubsub. See this guide on how to create and apply a binding configuration.

kind: Component
  name: <NAME>
  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
    value: ""
  - name: client_id
    value: "1111111111111111"
  - name: auth_uri
    value: ""
  - name: token_uri
    value: ""
  - name: auth_provider_x509_cert_url
    value: ""
  - name: client_x509_cert_url
    value: "<project-name>"
  - name: private_key
    value: "PRIVATE KEY"
  - name: direction
    value: "input, output"

Spec metadata fields

Field Required Binding support Details Example
topic Y Output GCP Pub/Sub topic name "topic1"
subscription N GCP Pub/Sub subscription name "name1"
type Y Output GCP credentials type service_account
project_id Y Output GCP project id projectId
private_key_id N Output GCP private key id "privateKeyId"
private_key Y Output GCP credentials private key. Replace with x509 cert 12345-12345
client_email Y Output GCP client email ""
client_id N Output GCP client id 0123456789-0123456789
auth_uri N Output Google account OAuth endpoint
token_uri N Output Google account token uri
auth_provider_x509_cert_url N Output GCP credentials cert url
client_x509_cert_url N Output GCP credentials project x509 cert url<PROJECT_NAME>
direction N Input/Output The direction of the binding. "input", "output", "input, output"

Binding support

This component supports both input and output binding interfaces.

This component supports output binding with the following operations:

  • create