Learning AWS
About
On the home page I wanted to display books from my Goodreads account. I also wanted to learn a little bit of AWS so I created a Lambda Function that fetches data from Goodreads API and stores it in a publicly available S3 file.
Tech stack
- AWS Lambda
- AWS CloudWatch
- AWS S3 (Simple Storage Service)
- Amazon SNS (Simple Notification Service)
Overview
This is what I came up with:
- There is a Cloud Watch rule that invokes Lambda Goodreads once a day
- Lambda Goodreads
- connects to the Goodreads API and gets my account data (read, currently reading and to read books)
- and publishes the data to the SNS Topic
- Lambda S3
- receives the data because it is subscribed to that SNS Topic
- and persists it into data.json in the S3 Bucket
- data.json is updated daily and eryk.io can display this file
