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

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.

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.