How to host static website using S3 in AWS

In this tutorial we will learn to host a static website using Amazon S3. for this tutorial you need a domain. First you will finish configuring your S3 bucket then you will add CNAME record in DNS provider pointing to your S3 Bucket.

    Step 1: Go to AWS Console and click on S3.

Step 2: Click on Create Bucket.


Step 3: Enter the bucket name. Bucket name must be same as domain name. Click on create.

        Step 4: Click on the bucket that you have created now.

 

Step 5: Click upload.



Step 6: Click on add files and upload all the files of your website. You can also create folder an put your files according to the folder. In our tutorial we have uploaded only index.html. Index.html file sufficient for this tutorial.


Step 7: After you have uploaded all your files then click on Upload



Step 8: Now click on Properties and click on Static Website Hosting.


Step 9: Click on use this bucket to host a website.



Step 11: Now you will see blue tick on static website hosting. Click again on Static website hosting to get the URL for you website.



Step 12: Copy this link and add CNAME record to the hosting provider.



Step 13: Before we access your website you need to change the permission of your bucket and file. Click on Properties and check on everyone.


Step 14: Select Read bucket permission and click on save.


Step 15. Now go to your bucket and Select index.html file.


Step 16: Click on More and select Make public.


Step 17: Click on Make public.



Step 18:Now paste the link you have copied in Step 12. if you have already added CNAME record in your Domain name provider then type your domain into the browser.


Get more information about AWS Training and Certification Visit Here.


Best AWS Training Institute in Noida... 


Best AWS Training Institute in Gurgaon...


Thank You for Reading

        Written by Puneet Kumar

Comments

Popular posts from this blog

AWS Training in Noida - AP2V Academy

Types of Cloud Computing

What is Amazon RDS?