terraform init
terraform apply
It outputs the frontend_url
which serves the index.html and main.js from the frontend bucket. You'll see 2 buttons: they
open an ebook using signed URLs from the private bucket.
terraform destroy
This is the main entry point of the infrastructure. It creates the private bucket, the singer Lambda function with the necessary permissions.
This is the Node.js backend implementation of the Lambda function.
The API Gateway to serve the Lambda function through a HTTP API.
This creates a frontend bucket with website configuration, and deploys the index.html and the main.js.
The frontend code is implemented in these files.
The books are from Project Gutenberg.