Project: Deploy a Static Website on AWS

Jonah Apagu
3 min readAug 1, 2022

Project Overview

This was the first project I completed while undertaking the Udacity cloud developer Nanodegree program sponsored by ALX-T. The cloud is perfect for hosting static websites that only include HTML, CSS, and JavaScript files that require no server-side processing this project has two major aims;

  1. To host a static website on S3.
  2. Access the cached website pages using AWS CloudFront content delivery network (CDN) service. The CloudFront offers low latency and high transfer speeds during website rendering.

Prerequisites

Project Steps

In this project, I deployed a static travelling blog website on AWS using the following steps;

  • I created a public S3 bucket using the AWS management console. The S3 bucket was made public because it will be used to host the static website and hosting requires that the content should be publicly available.
S3 bucket created
  • The files and folders of the static website containing the html, css and image files were uploaded into the S3 bucket.
Website files uploaded to the S3 bucket
  • The S3 bucket was secured using IAM policy by updating the bucket policy as shown below.
S3 Bucket Policy
  • The S3 bucket was configured for website hosting under the properties tab of the S3 bucket and the home page for the website was specified, after which the website endpoint was obtained. The endpoint URL can be used to access the home page of the website.
S3 bucket configured for website hosting
  • A CloudFront distribution was created using the AWS Management Console to speed up content delivery of the website and the CloudFront domain name to be used in accessing the website was obtained.
Cloudfront created
  • Accessed the website in a browser using the unique CloudFront endpoint.
website accessed using the CloudFront endpoint
  • After the project was reviewed all running resources were shut down and deleted.

Google Docs link

--

--

Jonah Apagu

A student of technology i am leveraging on the power of my imaginations given to me by God to add value to my world