https://github.com/sylvioneto/pubsub_consumer
Process payment audit logs with Cloud Functions
https://github.com/sylvioneto/pubsub_consumer
bucket cloudfunctions gcp gcs go
Last synced: 4 months ago
JSON representation
Process payment audit logs with Cloud Functions
- Host: GitHub
- URL: https://github.com/sylvioneto/pubsub_consumer
- Owner: sylvioneto
- Created: 2020-11-14T14:33:31.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-14T21:05:09.000Z (over 5 years ago)
- Last Synced: 2023-03-04T18:38:01.304Z (about 3 years ago)
- Topics: bucket, cloudfunctions, gcp, gcs, go
- Language: Go
- Homepage:
- Size: 43.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pubsub consumer with Cloud Function
This Cloud Function receives push messages from the PubSub topic `payment-audit-log`.
It validates the message format, schema, then store valid messages in a GCS bucket for further processing with analytics tools.
## Deploy
```shell
$ gcloud functions deploy PaymentAuditLog \
--entry-point ProcessLog --runtime go113 \
--trigger-topic payment-audit-log --set-env-vars BUCKET=
```
## Environment Variables
- BUCKET: The bucket where valid messages must be stored for further processing.