Amazon S3 allows you to host a static website. A static website can contain web pages with static content, as well as client-side scripts. S3 does not support server-side scripting, and because of this, you cannot host a site with any server-side scripting, such as PHP, JSP, and ASP.NET. You can host HTML pages, CSS, client-side scripts such as JavaScript, and so on.
Here's a step-by-step process to enable static website hosting on an S3 bucket:
- Sign in to your AWS console and go to the S3 console at https://console.aws.amazon.com/s3.
- Click on the bucket in which you want to enable static website hosting.
- Click on the Properties tab, as shown in the following screenshot:

Figure 8.21: Bucket properties tab
- Click on Static website hosting, as shown in the following screenshot:

Figure 8.22: Enabling static website hosting
- Specify index and...