Static deployment with an api
Deploy a static react app with a lambda api, using cloud front.
Details
In this tutorial we are going to configure a static react app served on an s3 bucket, and a simple backend api deployed on lambda. This is a simple low cost deployment for public applications. The front end is globally available with fast loading speeds. However the api is only available in 1 region, introducing latency issues for users farther away.
The front end
Start by creating a simple react app and github repo.