https://github.com/alphagov/pay-stream-s3-sqs
Message provider lambda to feed Amazon SQS with any number of messages from a simple CSV file backed by Amazon S3.
https://github.com/alphagov/pay-stream-s3-sqs
govuk-pay
Last synced: about 1 month ago
JSON representation
Message provider lambda to feed Amazon SQS with any number of messages from a simple CSV file backed by Amazon S3.
- Host: GitHub
- URL: https://github.com/alphagov/pay-stream-s3-sqs
- Owner: alphagov
- Created: 2020-03-26T10:13:56.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-04-25T15:47:39.000Z (about 2 months ago)
- Last Synced: 2025-04-25T16:49:42.395Z (about 2 months ago)
- Topics: govuk-pay
- Language: TypeScript
- Homepage:
- Size: 1010 KB
- Stars: 2
- Watchers: 6
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pay-stream-s3-sqs
Message provider lambda to feed Amazon SQS with any number of messages from a simple CSV file backed by Amazon S3.
## CSV format
A CSV is expected with the following headers, which are mapped to an event
message JSON object with the field names expected by ledger.| CSV header | Mapped field in emitted event |
|:------------------------------------|:-----------------------------------------------------|
| transaction_id | resource_external_id |
| parent_transaction_id | parent_resource_external_id |
| transaction_type | resource_type |
| event_date | timestamp |
| event_name | event_type |
| reproject_domain_object | reproject_domain_object |
| service_id | service_id |
| live | live |
| *\* | event_details['*\*'] |## Deployment
Changes are automatically deployed. See https://manual.payments.service.gov.uk/manual/how-to/ad-hoc-tasks.html#deploying-transaction-updater for more details.