The frontend is the easiest layer to go serverless. You just need a service to host your website's static files, and the user's browser will download the files, render the pages and execute the client-side JavaScript code. On AWS, the service we will use to host the frontend pages is Amazon S3. In this chapter, you'll also learn how to configure and optimize your website by adding a CDN and the supporting HTTPS connections.
In summary, we are going to cover the following topics:
- Using Amazon S3 to host static files
- Configuring Route 53 to associate your domain name with S3
- Using CloudFront to serve files through a CDN
- Requesting a free SSL/TLS certificate to support HTTPS connections
After this chapter, you'll have learned how to host a frontend in a serverless infrastructure.