GCP Storage Bucket binding spec

Detailed documentation on the GCP Storage Bucket binding component

Setup Dapr component

  1. apiVersion: dapr.io/v1alpha1
  2. kind: Component
  3. metadata:
  4. name: <NAME>
  5. namespace: <NAMESPACE>
  6. spec:
  7. type: bindings.gcp.bucket
  8. version: v1
  9. metadata:
  10. - name: bucket
  11. value: mybucket
  12. - name: type
  13. value: service_account
  14. - name: project_id
  15. value: project_111
  16. - name: private_key_id
  17. value: *************
  18. - name: client_email
  19. value: name@domain.com
  20. - name: client_id
  21. value: '1111111111111111'
  22. - name: auth_uri
  23. value: https://accounts.google.com/o/oauth2/auth
  24. - name: token_uri
  25. value: https://oauth2.googleapis.com/token
  26. - name: auth_provider_x509_cert_url
  27. value: https://www.googleapis.com/oauth2/v1/certs
  28. - name: client_x509_cert_url
  29. value: https://www.googleapis.com/robot/v1/metadata/x509/<project-name>.iam.gserviceaccount.com
  30. - name: private_key
  31. value: PRIVATE KEY
  • bucket is the bucket 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.

Warning

The above example uses secrets as plain strings. It is recommended to use a secret store for the secrets as described here.

Output Binding Supported Operations

  • create

Related links

Last modified February 16, 2021: Merge pull request #1235 from dapr/update-v0.11 (b4e9fbb)