Host a static website using Amazon S3

Tanvi Sharma
4 min readApr 17, 2022

--

What is Amazon S3 ?

Amazon Simple Storage Service (Amazon S3) is a scalable, high-speed, web-based cloud storage service. It can be used to store or retrieve any amount of data such as documents, images, videos, etc. S3 provides 99.999999999% durability and 99.99% availability for objects stored in the service.

What is Amazon S3 Bucket ?

A bucket is a container for objects. To store your data in Amazon S3, you first need to create a bucket and specify a bucket name and AWS Region. Then, you upload your data to that bucket as objects in Amazon S3. The objects in bucket are private and can be accessed only if you explicitly grant access permissions.

-> Launch a static website in the Amazon S3 step by step:

  1. Sign in to your AWS account — https://console.aws.amazon.com/ec2/.

Then type S3 in the search bar and click on the S3 (scalable storage in the cloud)

2. Click on the create bucket.

3. To create a bucket type the bucket name in the bucket name field. You need to create your new S3 bucket with a unique name.

4. To specified the objects of this bucket using ACL’s, change the object ownership by selecting the radio button of ACL’s enabled.

5. Remove the tick from the block all public access. You also need to acknowledge that you operated intentionally.

6. Review the bucket configuration and click on the Create bucket.

Bucket has been successfully created.

7. To upload html file in bucket , click on the bucket name my-aws-buckett.

8. To upload an object in the S3 bucket, click on the upload button.

9. To upload the html file, click on the Add Files button.

10. Select a particular html file from your system.

11. Click on the upload button.

12. Now click on the name of html file.

13. As this will be a public website, you will need to select the make public using ACL option to enable public read action.

14. To give the public access to anyone in the world, click on the make public button.

15. Click on the properties of the object and copy the object URL.

16. Paste the URL in the web browser.

And that is how a static website can be hosted by using an AWS S3 bucket. Thanks for reading !

--

--

Tanvi Sharma

Passionate writer and community contributor on Medium. Sharing insights and knowledge to empower others in their journey. Let's learn and grow together!