https://github.com/cbuschka/retour
POC retour processing with aws lambda
https://github.com/cbuschka/retour
aws dynamodb lambda sqs terraform
Last synced: 7 months ago
JSON representation
POC retour processing with aws lambda
- Host: GitHub
- URL: https://github.com/cbuschka/retour
- Owner: cbuschka
- License: mit
- Created: 2019-08-14T19:53:40.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-16T05:05:25.000Z (almost 3 years ago)
- Last Synced: 2025-01-16T04:23:10.786Z (9 months ago)
- Topics: aws, dynamodb, lambda, sqs, terraform
- Language: Java
- Homepage:
- Size: 111 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
# Retour processing on aws
## Ingredients
* java 8
* python
* terraform
* aws lambda
* cloudwatch
* dynamodb
* sqs (standard and fifo)## Prerequisites
* linux
* terraform
* make
* java 8
* aws auth config in ~/.aws/credentials
```
[default]
aws_access_key_id = ABCDFGHIJKLMNOPQRSTUVWXYZ
aws_secret_access_key = HGSGgui279dhwshksd6e27e2ui
```## Deploy aws stack
```
make deploy
```## Destroy aws stack
```
make destroy
```## Setup python tools
```
cd tools && \
virtualenv --python=python3.7 .py37 && \
source .py37/bin/activate && \
.py37/bin/pip install -r requirements.txt
```## Send test message
```
.py37/bin/python3.7 send_sqs_message.py
```## Loose Ends
* Retour is written Retoure
* Sender/receiver info in metadata
* Queues per sender/receiver
* Refund/charge amounts? Messages payload?
* Sync calls?
* TTL retour records
* TTL messages
* Framework? (micronaut?, ...)
* Extract tf module for lambda with request/ack/error messages
* Naming lambda role
* Roles instead of custom policies
* Recreate tf state?
* Integration tests?
* Load tests?
* Environments?
* Order cancelled?## Author
Written 2019 by [Cornelius Buschka](https://github.com/cbuschka).## License
[MIT](./license.txt)