Hosting dylanperkins.com on AWS
The original site was one of my first small, hands-on cloud projects. I put the static files in Amazon S3, delivered them through CloudFront and managed DNS through Cloudflare. I also configured Origin Access Control so the S3 bucket was not publicly accessible and the content was reached through the CloudFront distribution.
It is a small website, which made it a good way to work through how the services fit together without introducing much application complexity. There is a file to serve, a place to store it, a public hostname and an HTTPS request that needs to reach the right content.
Storage and public delivery
S3 holds the static content. CloudFront is the public delivery layer. The bucket policy and Origin Access Control connect the two while keeping direct public access to the bucket restricted. That separation was the main thing I wanted to get right: being able to visit a website does not mean every part of its storage needs to be publicly reachable.
DNS and HTTPS add the other pieces. The domain needs to resolve to the distribution, the certificate needs to match the hostname, and changes have to propagate through the systems involved. Working through those details makes the architecture easier to understand than seeing the service names on a study diagram.
I wrote the original post while refreshing my AWS Solutions Architect knowledge and working toward recertification. It was a useful way to turn that revision into a concrete result I could open in a browser.
Publishing a change
The source is versioned in GitHub. A push to the main branch runs local link and media checks, uploads the public site folder to S3, clears CloudFront’s cached copies and compares the live pages and media with the source. Pull requests run the checks without deploying.
GitHub Actions uses OpenID Connect to assume a role restricted to this repository and branch. The workflow waits for cache invalidation before checking both domain names. It publishes the site files, with Git metadata and deployment scripts kept outside the public folder.
The files
This version of the site is ordinary HTML, a small stylesheet, images and an audio file. The navigation is hyperlinks. The text is in the files. The project pages work when opened locally as well as when served by a web server.
That is sufficient for what I want this website to do: explain my work, show the results and point to the relevant projects.