Here were the basic requirements for the project:
- One HTTP endpoint to accept a JSON GET/POST/PUT/DELETE/OPTIONS containing misc data. These values would need to be stored somewhere.
- Define everything via terraform to make it reproducible.
To accomplish this I needed a few components:
- A front-end to take in HTTP requests. API Gateway
- A back-end to do something with the requests and generate responses. AWS Lambda
- A datastore to keep all the associated short tokens and API responses. AWS Dynamo