My First Smart Static Website

Introduction

Building a smart static website was an exciting challenge. I wanted a site that was more than just a basic HTML page—I needed it to be scalable, fast, and reliable. To achieve this, I hosted my website on AWS S3, distributed it using CloudFront, secured it with AWS Certificate Manager, monitored performance with CloudWatch, and configured Route 53 to ensure my custom domain worked seamlessly.

While this might sound simple, I ran into a few challenges along the way. This blog post will walk through the process, the issues I faced, how I debugged them, and what I learned.

Building the Infrastructure

Creating an S3 Bucket

Uploading Website Files

Setting Up CloudFront

Configuring Route 53

Monitoring with CloudWatch

Project Diagram

AWS Smart Static Website Diagram

Troubleshooting and Debugging

Problem 1: Domain Not Resolving (DNS_PROBE_FINISHED_NXDOMAIN)

At first, my domain jordanpbraysr.org wasn’t resolving correctly. Running a dig command showed that the domain had no A record pointing to CloudFront.

Fix:

Problem 2: Website Updates Not Reflecting

Even after uploading the correct index.html, my site still showed the old version.

Fix:

Problem 3: Certain Tabs Not Working

Some links, like Certifications and Blog, were not opening new pages.

Fix:

What I Learned

What’s Next?

This was my first smart static website, but I don’t want to stop here. Right now, I manually set up the infrastructure, but in my next project, I plan to automate this entire deployment using Infrastructure as Code (IaC) with Terraform or AWS CloudFormation. Stay tuned!