January 10, 2026

Creating Static Sites with Astro

Over the past few months, I’ve been converting all my static sites to use Astro for site generation and OpenTofu for infrastructure deployment to AWS.

The biggest site I’ve converted so far is my dad’s dental practice.

I was able to scrape his old WordPress site for content, and then re-create a similar site using Astro components. It is going to be a lot easier to maintain going forward, not having to deal with WordPress updates, plugins, and security issues.

Claude Code helped with scraping, formatting, and rapid iteration of the Terraform infrastructure-as-code.

This OpenTofu, Astro, and Claude Code combination has been really effective for me to create clean, modern, and lightweight sites.

The costs are minimal, the infrastructure is easy to manage, and the sites are fast when hosted via Cloudfront. The main cost I incur is the $0.50/month for the Route53 hosted zone. Since these are low-traffic sites, the remaining S3 and CloudFront costs are negligible.

Now that I have a stack that is dialed-in, I can spin up a new site in under an hour or two. If you’re looking to create simple static sites, I highly recommend checking out Astro and OpenTofu.

Sites I’ve created so far using this stack: