India English
Kenya English
United Kingdom English
South Africa English
Nigeria English
United States English
United States Español
Indonesia English
Bangladesh English
Egypt العربية
Tanzania English
Ethiopia English
Uganda English
Congo - Kinshasa English
Ghana English
Côte d’Ivoire English
Zambia English
Cameroon English
Rwanda English
Germany Deutsch
France Français
Spain Català
Spain Español
Italy Italiano
Russia Русский
Japan English
Brazil Português
Brazil Português
Mexico Español
Philippines English
Pakistan English
Turkey Türkçe
Vietnam English
Thailand English
South Korea English
Australia English
China 中文
Somalia English
Canada English
Canada Français
Netherlands Nederlands

How to Host a Website on AWS (Amazon Web Services)

We are Hiring!

We are looking for an experienced SEO writer and copywriter to join us at Cloudoon

Many people in Kenya want to put their business online. They want a site that loads fast, stays safe, and does not cost much to run. 

AWS web hosting helps you do this. It gives you cloud tools that are trusted around the world. 

A website on AWS can load in seconds, even for users in Nairobi or Mombasa.

But AWS can feel hard at first. There are many menus, new terms, and fees that you may not understand. 

If you are just starting out, you may worry about making mistakes or paying too much. 

This guide will help you avoid that. It will show you how to host a simple static website on AWS with clear steps.

By the end, you will have a live website that uses HTTPS and loads quickly. You will also understand the main AWS tools for hosting. Here is what you will learn:

  1. How to set up your AWS account
  2. How to connect your domain using Route 53
  3. How to store files on S3
  4. How to add SSL with AWS Certificate Manager
  5. How to speed up your site with CloudFront
  6. How to point your domain to your website

Let’s begin.

Getting Started

To start, you need an AWS web hosting account. Go to the AWS Management Console and sign up

aws web hosting

It takes a few minutes. You will use your email and a credit card. AWS will not charge you until you pass the free limits.

Many people ask if AWS hosting is free. Yes, AWS offers a Free Tier for new users. 

This includes credits worth up to USD 200 and free use of many services for the first 12 months. 

For hosting a small static website, the Free Tier gives you:

  • 5 GB S3 storage
  • 20,000 S3 file requests
  • 1 million CloudFront requests
  • Free SSL certificates

This is enough for a small business site or school project. It lets you test AWS without spending money.

For hosting, you will use the following AWS tools:

  • Route 53 to manage your domain
  • S3 to store your website files
  • Certificate Manager (ACM) for free SSL
  • CloudFront to improve speed

Step 1: Configuring DNS with Route 53

A domain name is the address of your website. It is what people type, such as yourbusiness.co.ke

DNS is the system that connects this name to your site. Route 53 is AWS’s DNS tool. 

It is fast, reliable, and works well with other AWS services.

If you do not have a domain yet, you can buy one from places like Truehost, Namecheap, or Hostinger. 

aws web hosting

Prices start at around KSh 100 per year for some domain endings. Domains like .com usually cost around KSh 1,300 per year.

After getting your domain, follow these steps:

  1. Open the Route 53 console
  2. Click “Create hosted zone”
aws web hosting
  1. Enter your domain name
  2. Choose “Public hosted zone”
aws web hosting
  1. Create the zone
  2. Copy the nameserver (NS) records
  3. Paste the NS records into your domain provider’s settings
  4. Save and wait up to 48 hours for changes to update

A DNS hosted zone holds records that tell the internet where your site and email are. Below are common DNS record types:

  • A Record: Points your domain to an IP address
  • CNAME Record: Points one name to another name
  • MX Record: Used for email
  • TXT Record: Used for verification and security rules

Route 53 Costs (Kenya Estimate)

ItemPrice
Hosted zoneAbout KSh 65 per month
DNS queriesAbout KSh 50 per 1 million

Route 53 is cheap to run and works well even for small sites.

Step 2: Setting Up an S3 Bucket

S3 means Simple Storage Service. It stores your files such as HTML, CSS, JavaScript, and images. 

S3 is good for static websites because the files do not change often. Static sites load quickly and have fewer security risks.

Follow these steps to create your S3 bucket:

  1. Open the S3 console
  2. Click “Create bucket”
aws web hosting
  1. Name it exactly like your domain (example: yourbusiness.co.ke)
  2. Select a region close to Africa (eu-west-1 is common)
  3. Uncheck “Block all public access”
aws web hosting
  1. Create the bucket

Now upload your files:

  1. Open the bucket
  2. Click “Upload”
aws web hosting
  1. Add all your website files
  2. Make sure you have index.html because it is your homepage

To make your bucket work as a website:

  1. Go to the “Properties” tab
  2. Scroll to “Static website hosting”
  3. Turn it on
  4. Set index document to index.html

Next, you must make your files public. Add this policy in the Permissions  Bucket Policy. Replace yourbusiness.co.ke with your own bucket name.

{

  “Version”: “2012-10-17”,

  “Statement”: [{

    “Effect”: “Allow”,

    “Principal”: “*”,

    “Action”: “s3:GetObject”,

    “Resource”: “arn:aws:s3:::yourbusiness.co.ke/*”

  }]

}

Copy your S3 website URL from the Properties page and test it in your browser. Your site should load.

S3 Costs (Kenya Estimate)

ItemFree TierPrice After Free Tier
Storage5 GBAbout KSh 2.50 per GB
GET Requests20,000About KSh 0.40 per million

A small website in Kenya usually costs under KSh 100 per month on S3.

Step 3: Adding an SSL Certificate with ACM

HTTPS keeps your site safe. It encrypts the link between the browser and your site. 

Google also ranks HTTPS sites higher. AWS gives free SSL certificates through ACM.

Follow these steps:

  1. Change your AWS region to us-east-1
  2. Open ACM
  3. Click “Request certificate”
aws web hosting
  1. Choose “Public certificate”
  2. Add your domain and “www” version
  3. Choose DNS validation
  4. Click “Create records in Route 53”
  5. Wait for the certificate status to show “Issued”

Pro tip for Kenyan users: Even though your S3 bucket is in eu-west-1 (closer to us for faster loads), ACM certs for CloudFront must use us-east-1. No worries it’s free and global.

The certificate is free and renews automatically. DNS validation may take a few minutes to a few hours.

Step 4: Speeding Up Your Site with CloudFront

CloudFront is a Content Delivery Network. It stores copies of your site in different locations around the world. 

When someone in Kenya visits your site, CloudFront sends the files from the closest location, making your site load faster.

Follow these steps:

  1. Open the CloudFront console
  2. Click “Create distribution”
  3. For the origin domain, enter your S3 website endpoint
  4. Set the viewer protocol to “Redirect HTTP to HTTPS
  5. Add your CNAMEs (example.co.ke and www.example.co.ke)
  6. Select your ACM certificate
  7. Set default root object to index.html
  8. Create the distribution

It may take up to 30 minutes to finish deploying. When done, CloudFront will give you a new domain. You can open it in your browser to test the site.

CloudFront Costs (Kenya Estimate)

ItemFree TierPrice After Free Tier
Data out1 TBAbout KSh 11 per GB
Requests10 millionAbout KSh 0.80 per 10,000

CloudFront helps sites load up to 40% faster for most users.

Step 5: Pointing Your Domain to CloudFront

Now you must connect your domain to CloudFront so people can reach your site using your real domain name.

In Route 53:

aws web hosting
  1. Create a new A Record
  2. Leave the name empty to point the root domain
  3. Choose “Alias”
  4. Select your CloudFront distribution
  5. Save

For the www version:

  1. Create another A Record
  2. Set the name to www
  3. Use Alias to point it to the root A Record

Test your domain in your browser. It should now load your site with HTTPS.

Conclusion

You now have a complete static website hosted on AWS. It is fast, safe, and ready for visitors in Kenya and beyond. You have learned how to:

  • Set up AWS
  • Configure Route 53
  • Store files in S3
  • Add free SSL with ACM
  • Speed up your site with CloudFront
  • Connect your domain

Keep checking your AWS usage from the dashboard. If your site grows, AWS can scale with it.

If you want an easier setup or managed hosting, you can explore Truehost AWS hosting plans. 

This lets you focus on your business while experts handle the technical work.

Let me know if you want a shorter version, a video script, or separate sections rewritten.

SSL COUPON Offer

Read More Posts

Free Web Hosting and Domain Name with cPanel: Is It Worth It?

Free Web Hosting and Domain Name with cPanel: Is It Worth It?

Starting a website can feel overwhelming. You want to get online quickly, but the costs, technical setup, and…

Web Hosting Basics: Everything You Need to Know Before You Start

Web Hosting Basics: Everything You Need to Know Before You Start

When starting a website for any purpose, we encounter various terms, such as web hosting. You might have…

Free Web Hosting for Developers and Test Projects

Free Web Hosting for Developers and Test Projects

Are you a developer looking for free web hosting for developers that actually works for real projects? You’re…

Free Web Hosting Without Credit Card Requirements

Free Web Hosting Without Credit Card Requirements

Starting an online project should be exciting, not complicated by payment details.  Are you looking to launch a…