Skip to content

FoundersAS/matchbox-sqs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

matchbox-sqs

This program uses the matchbox module and exposes the interface over Amazon AWS SQS.

It expects the following three environment variable to be set.

AWS_ACCESS AWS_SECRET AWS_REGION

It has an inbound queue where it receives a message with the format documented in the matchbox module, and after it is done with the matching, it pushes the results to an outbound queue in the following format.

{
  "id": "SOME-ID-YOU-PASSED-ON-THE-FIRST-MESSAGE",
  "transactions": [
    {
      "amount": "...",
      "text": "...",
      "date": "..."
      "matches": [... list of matched emails ...]
    }
  ]
}

The inbound queue's default name is csv-to-match. It can be changed by setting the INBOUND_QUEUE environment variable. The outbound queue's default name is matched-transactions. It can be changed by setting the OUTBOUND_QUEUE environment variable.

About

This is a Amazon SQS service wrapper for the Matchbox module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published