An open API service indexing awesome lists of open source software.

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

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.