MrinmoiHossain / Deploy-a-Static-Website-on-AWS

In this project, a static website to AWS is deployed. For hosting this static website, S3 bucket is used and all necessary website files is uploaded the to bucket.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deploy a Static Website on AWS

Project Overview

The cloud is perfect for hosting static websites that only include HTML, CSS, and JavaScript files that require no server-side processing. In this project, deployed a static website to AWS. Firstly, created an S3 bucket, configured the bucket for website hosting, and secured it using IAM policies. Next, uploaded the website files to your bucket and speed up content delivery using AWS’s content distribution network service, CloudFront. Lastly, accessed the website in a browser using the unique S3 endpoint.

File Summary

  • index.html - The Index document for the website.
  • /img - The background image file for the website.
  • /vendor - Bootssrap CSS framework, Font, and JavaScript libraries needed for the website to function.
  • /css - CSS files for the website.

Steps of the project

  1. Create a S3 bucket where need to uncheck “Block all public access”. Create S3 bucket

  2. Upload the files and folders from your local computer to the S3 bucket. Upload to S3 bucket

  3. Change the Bucket Policy according to your Bucket Policy file. Bucket policy

  4. Make the bucket to host a website using bucket properties tab. Bucket properties

  5. Use CloudFront dashboard create distribution and S3 bucket name use under “Origin Domain Name”. CloudFront

  6. Open a web browser like Google Chrome and paste the copied endpoint URL and append “/index.html” on the end. Website Demo

About

In this project, a static website to AWS is deployed. For hosting this static website, S3 bucket is used and all necessary website files is uploaded the to bucket.


Languages

Language:CSS 57.0%Language:HTML 43.0%