How to configure a static website on Amazon S3 bucket

In this section, we will create an S3 bucket and enable website hosting configuring properties and adding a bucket policy on the bucket through the S3 console. Next, we will upload a sample static content to the bucket, and verify that the content is available over the Internet in the browser.

Getting ready

You don't need to request or fill-in any form to host a static website on Amazon S3 through the Amazon Management Console; nor do you pay any initial cost.

Before configuring a static website on Amazon S3, all you need to do is sign up to the AWS management console and access S3 using your IAM credentials.

How to do it…

Proceed with the following steps to host a static website on the Amazon S3 ...

Get Amazon S3 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.