mirror of https://github.com/dapr/docs.git
1.6 KiB
1.6 KiB
GCP Cloud Pub/Sub Binding Spec
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: <NAME>
namespace: <NAMESPACE>
spec:
type: bindings.gcp.pubsub
metadata:
- 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@domain.com
- name: client_id
value: '1111111111111111'
- name: auth_uri
value: https://accounts.google.com/o/oauth2/auth
- name: token_uri
value: https://oauth2.googleapis.com/token
- name: auth_provider_x509_cert_url
value: https://www.googleapis.com/oauth2/v1/certs
- name: client_x509_cert_url
value: https://www.googleapis.com/robot/v1/metadata/x509/<project-name>.iam.gserviceaccount.com
- name: private_key
value: PRIVATE KEY
topicis the Pub/Sub topic name.subscriptionis the Pub/Sub subscription name.typeis the GCP credentials type.project_idis the GCP project id.private_key_idis the GCP private key id.client_emailis the GCP client email.client_idis the GCP client id.auth_uriis Google account OAuth endpoint.token_uriis Google account token uri.auth_provider_x509_cert_urlis the GCP credentials cert url.client_x509_cert_urlis the GCP credentials project x509 cert url.private_keyis the GCP credentials private key.
Note: In production never place passwords or secrets within Dapr components. For information on securely storing and retrieving secrets refer to Setup Secret Store