The KickStarter
Published in

The KickStarter

How to Launch a Website in Aws Cloud?

Photo by Pankaj Patel on Unsplash

You have this wonderful idea which you may develop into an online product in future. Or you want to create a website for your business. May be you want to create a website in your kid’s name, because investing in a domain name will give them better returns when they grow up. Whatever may be the reason, buy a domain from one of the registrars like GoDaddy first.

Creating Hosted Zone in Route 53

Create an Aws account and login after verification. Navigate to Route 53 under Services menu. Create a Public Hosted Zone in Route 53 for your domain.

Copy the Nameservers from NS record to your Domain registrar’s DNS settings page

Creating SSL certificates for your domain

Now search for Certificate Manager in Services and select the link. Click Request a certificate. Select N. Virginia as your region for certificate creation.

Request a public certificate
Add both root domain and www sub domain
Select DNS validation and click Next. Go to final page to Confirm and request
Click on Create record in Route 53 and wait for 15 minutes to get it Validated
Create an S3 bucket with bucket name as your root domain and click Create
Choose the newly created S3 bucket and click on Permissions. Click Edit in Block public access

Uncheck Block all public access and Save. Go to Bucket Policy and paste the below json. Replace the Resource with your domain name and click Save.

“Version”: “2012–10–17”,
“Statement”: [
“Sid”: “PublicReadGetObject”,
“Effect”: “Allow”,
“Principal”: “*”,
“Action”: “s3:GetObject”,
“Resource”: “*”

Now click Overview and Upload your index.html. Also an error.html to display as a generic error page.

Click Properties and Check Static website hosting. Type in html file names and Save

Copy the Endpoint for the next Step.

Cloud Front distribution

Search for Cloud Front under Services and click Create Distribution. Click Get Started button in Web delivery method.

  1. Paste your S3 Endpoint Url in Origin Domain Name and Leave other settings as default under Origin Settings
  2. In Viewer Protocol Policy, select Redirect HTTP to HTTPS option
  3. Leave all other settings with defaults except Compress Objects Automatically for which select Yes. This enables Gzip compression.
  4. In Alternate Domain Names (CNAMEs) type “,”
  5. Select Custom SSL Certificate under SSL Certificate and select the certificates we created.
  6. Click Create Distribution to finish the Cloud Front creation

Wait till the Status of your Distribution changes to Deployed.

Copy the Domain Name of your CloudFront Distribution

Route domain requests to Cloud Front in Route 53

Navigate to Route 53 and click Create Record Set. Paste the Domain Name copied into Alias Target after selecting Alias as Yes. Leave rest as default and click Save Record Set. Repeat this for www domain too.

Assuming you created the hosted zone a day before and you updated the registrar. Your website will be live in a few minutes with https enabled. Tada!

With Free Tier pricing your website is now running under a budget of $1 including taxes.




A place for passionate writers, innovators, entrepreneurs, digital marketers, side hustlers, and anyone who is ready to help people solve their problems.

Recommended from Medium

Salesforce Alternatives: Our Top 7 Picks for 2022

Restaurant Owners: Are Your Ads And Social Media Captions Up To Par? The Secret To Good Copy

5 Marketing ideas to use today

Owning Your Content



GrowMofo Case study of Crate Expectations

The First Decentralized Writing Platform That Pays Writers Is Here

A forklift holds up a mirrored ball.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Richy Great

Richy Great

Father, Software Architect and a Story teller

More from Medium

Enable Social Login AWS Cognito: Add Google Login

Deploy React app in AWS Amplify in just a few clicks… …

New Feature: AWS Introduced Lambda Function URLs

AWS Serverless or Lambda, S3 uses .