This project reflects work done to host this static website on AWS, register domain name, obtain SSL certificate and deliver content using aws CloudFront to end users


Take a quick look at Work Flow Diagram to get hight level picture of work to be done



Plan of Work:

Actual steps:

  1. In Route 53, register a domain name
  2. Create s hosted zone
  3. In S3 console create S3 buckets for main and redirect domains.
  4. S3 bucket for redirect domain
  5. Route 53 - Hosted zone. Currently has one domain name registered but not linked to any website.
  6. AWS Certificate Manager - Request a certificate - request a public certificate
  7. In AWS Cloudfront distribution
  8. In redirect S3 bucket's properties, static website hosting section, in Protocol subsection change to HTTPS option
  9. Finally, go to Route 53 - hosted zone and change both domain's A records. Changes to make: in section 'Route traffic to” change to 'Alies to CloudFront Distributions and in lookup section below it choose (or copy paste) respective CloudFront distribution domain name. This way we rerouting traffic to our CloudFront distributions, that in turn are routing traffic to s3 buckets website endpoint and their alternate DNS names using HTTPS protocol.

And now it's time to check our website in browser… Vuala, both domain names redirect traffic to our website using secure HTTPS protocol.