Amazon Web Service

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.

How-to-host-static-website-using-S3-in-AWS-step-1.PNG

Step 2: Click on Create Bucket.

How-to-host-static-website-using-S3-in-AWS-step-2.PNG

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

How-to-host-static-website-using-S3-in-AWS-step-3.PNG

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

How-to-host-static-website-using-S3-in-AWS-step-4.PNG

Step 5: Click upload.

How-to-host-static-website-using-S3-in-AWS-step-5.PNG

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.

How-to-host-static-website-using-S3-in-AWS-step-6.PNG

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

How-to-host-static-website-using-S3-in-AWS-step-7.PNG

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

How-to-host-static-website-using-S3-in-AWS-step-8.PNG

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

How-to-host-static-website-using-S3-in-AWS-step-9.PNG

Step 10: Enter index document name and error document name. Click on Save.

How-to-host-static-website-using-S3-in-AWS-step-10.PNG

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.

How-to-host-static-website-using-S3-in-AWS-step-11.PNG

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

How-to-host-static-website-using-S3-in-AWS-step-12.PNG

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.

How-to-host-static-website-using-S3-in-AWS-step-13.PNG

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

How-to-host-static-website-using-S3-in-AWS-step-14.PNG

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

How-to-host-static-website-using-S3-in-AWS-step-15.PNG

Step 16: Click on More and select Make public.

How-to-host-static-website-using-S3-in-AWS-step-16.PNG

Step 17: Click on Make public.

How-to-host-static-website-using-S3-in-AWS-step-17.PNG

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.

How-to-host-static-website-using-S3-in-AWS-step-18.PNG

Must Read Article

How To Launch EC2 Machine

How To Launch EC2 Machine

In this article we are going to learn how to launch a EC2 instance. For this you need to have AWS account.

How to install WordPress on ec2 machine

How to install WordPress on EC2 machine

Before you start installing WordPress on EC2 machine. You must log in into the machine.

In this tutorial we are going assign static IP to ec2 Instance.

How to assign Static IP to EC2 Instance

In this tutorial we are going assign static IP to EC2 Instance.

How to Stop ec2 instance

How to Stop EC2 instance

In this tutorial we are going to stop EC2 instance.

How to Terminate ec2 instance

How to Terminate EC2 instance

In this tutorial we are going to terminate EC2 instance.

How to Access ec2 instance using putty

How to Access EC2 instance using putty

In this tutorial we will learn how to convert .pem file into .ppk file. After converting private key we will login into ec2 machine using putty.

How to allocate Static IP address

How to allocate Static IP address

In this tutorial we are going to allocate a static IP.

How To Launch EC2 Machine

How To Launch EC2 Machine

In this article we are going to learn how to launch a EC2 instance. For this you need to have AWS account.

How to install WordPress on ec2 machine

How to install WordPress on EC2 machine

Before you start installing WordPress on EC2 machine. You must log in into the machine.

How to create a VM instance in Azure

How to create a VM instance in Azure

In this Tutorial we are going to launch a Virtual Machine in azure.

How to install WordPress on VM instance in Azure

How to install WordPress on VM instance in Azure

Before you start installing WordPress on VM instance on Azure. You must log in into the machine. You can launch a VM Instance in Azure using this tutorial. After launch of machine log in into the machine using SSH. If you do not know how to SSH in VM instance you can follow this tutorial.

How to launch a VM instances in Google Cloud

How to launch a VM instances in Google Cloud

In this tutorial we are going to launch a Compute Egine instance.

How to install wordpress in VM instances in Google Cloud

How to install WordPress on VM instance in Google Cloud

Before you start installing WordPress on VM instance on Google Cloud. You must log in into the machine. You can launch a VM Instance on Google Cloud using this tutorial. After launch of machine log in into the machine using SSH. If you do not know how to SSH in VM instance you can follow this tutorial.