The objective of the project is to host my CV as a static HTML website using S3 and CloudFront.

Image description

The image above outlines the project workflow.

Image description

I started by creating an S3 bucket with public access policy enabled then I upload my CV document as an HTML file.
I then navigated to the CloudFront Console, created a new distribution and set the Origin Domain as the bucket created above. I then changed the Origin access from Public to Origin access control settings (OAC). Afterwards, I created a new OAC and selected it.
I created the distribution the copied the CloudFront OAC to the bucket policy. This is as shown in the figure below.

Image description

Once, that finished propagating, I copied the link to test my website.

Image description

As the image above displays, the project objective was archived.

Lessons Learned:

  • Uploading a website on S3 allows you to easily edit and update it.
  • S3 hosted website can be accessed from any browser.
  • CloudFront ensure low latency

Conclusion:
You can successfully host a static website on S3 even without having a domain.