Amazon S3 is extremely useful because it is a cheap service that provides high availability and scalability, requiring zero management effort. The infrastructure is fully managed by AWS. In this section, we are going to use S3 to host our website static files such as HTML, CSS, JavaScript, and images. You will see that this is done by uploading the files to a bucket and configuring S3 to enable website hosting.
Besides hosting static websites, you can also host complex applications. You just need to have a clear separation of concerns: the frontend files (HTML/CSS/JavaScript) will be hosted on S3 and will be used by the browser to render the web page and request additional data to the backend code, which will be hosted and executed by Lambda functions. As we are going to discuss in Chapter 5, Building the Frontend, you can build your frontend...