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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
<transaction detail field name> event_details['<transaction detail field name>']

Deployment

Changes are automatically deployed. See https://pay-team-manual.cloudapps.digital/manual/how-to/ad-hoc-tasks.html#deploying-transaction-updater for more details.

About

Message provider lambda to feed Amazon SQS with any number of messages from a simple CSV file backed by Amazon S3.


Languages

Language:TypeScript 98.3%Language:Dockerfile 1.7%