Published3 min read

I Also Fell Down the Rabbit Hole: Building a Fully Automated Astro Blog Pipeline with VSCode, GitLab, Amplify and CloudFront.

Because every infrastructure engineer eventually builds yet another automated static site pipeline.

I’ll be honest: I’m new to this whole blogging thing, but if there’s one universal truth about tech blogs, it’s that the first post is always about the stack behind it. So here’s mine. Don’t worry, I’ll spare you a 20-page deep dive. If I didn’t, this post would quickly devolve into a copy-and-paste marathon from half a dozen documentation pages, and nobody wants that.

What I use

  • VScode
  • Astro js + tailwind css
  • GitLab
  • AWSAWSAmazon Web ServicesCloudAmazon global cloud computing platform offering on-demand compute, object storage, content delivery, and managed infrastructure services across dozens of geographic regions. Amplify
  • AWS CloudFrontCloudFrontAmazon CloudFrontCloudAWS global content delivery network (CDN) that securely delivers data, static assets, and APIs at low latency with edge caching and Origin Access Control.

VSCode is my preferred IDEIDEIntegrated Development EnvironmentDevOpsA comprehensive software suite that consolidates source code editing, syntax highlighting, debugging tools, and build automation into a single workspace.. It’s simple to use, free, and has a massive library of add-ons. Since this is my first Astro project, I’m especially grateful for the extension that provides proper syntax and semantic highlighting.

I ended up choosing Astro after comparing it to static site generators (SSGSSGStatic Site GenerationArchitectureA web architecture where all HTML pages, scripts, and stylesheets are pre-built at compile time, eliminating server processing at request time.) I’ve used in the past, like Jekyll, Hugo, and Ghost. Astro is the shiny new kid on the block and brings some interesting features right out of the box, including static, hybrid, and server-side page rendering (SSRSSRServer-Side RenderingArchitectureA web rendering architecture where pages are dynamically generated by an application server on demand for each incoming client HTTP request.). If that piques your curiosity, I encourage you to check out their documentation or spin up an install yourself.

VSCode and Git work hand in hand. After setting up a private repository for this project, pushing changes is as simple as running a few commands in the terminal. I haven’t felt the need for extra extensions like GitLab Workflow but who knows, maybe future me will appreciate the convenience. I chose GitLab because I’m already familiar with self-hosted instances, so it felt like the natural fit for this project.

Enter AWS Amplify. Honestly, Amazon could hardly have made deploying apps any easier. Amplify can trigger a pull from your Git repository using a simple webhook whenever a branch is merged or a new commit gets pushed. Add a bit of YAMLYAMLYAML Ain't Markup LanguageDevOpsA human-friendly, indentation-sensitive data serialization language widely used for configuration files, cloud manifests, and CI/CD pipelines., and you’ve got a fully automated build process. From there, it’s almost absurdly straightforward: write a new post or tweak a file, push it, and let the magic cloud machinery handle the rest.

Lastly, with just a few extra clicks, a domain already managed in Route 53Route 53Amazon Route 53CloudAWS highly available, authoritative cloud Domain Name System (DNS) service supporting latency-based routing, health checks, and CloudFront alias records. can be automatically configured to front the Amplify app through AWS CloudFront. If you’re using a third-party DNSDNSDomain Name SystemNetworkingThe distributed hierarchical naming system that translates human-readable hostnames into numerical IP addresses and directs mail routing via MX records. provider, you’ll probably have to add the required records manually. As a nice bonus, CloudFront also generates and configures an SSLSSLSecure Sockets LayerSecurityThe predecessor cryptographic protocol to TLS for encrypting network communications; commonly used as the umbrella term for SSL/TLS certificates. certificate during the setup process.

Conclusion

This is the high-level overview without diving too deep into the specifics. Those details are all well documented in their respective corners of the internet. Building this site from almost scratch and automating its deployment turned out to be a genuinely fun exercise, and a great way to explore a new stack end to end—one that later evolved through an Astro 7 and Tailwind v4 overhaul, a faster GitLab CI to S3 MRAP deployment pipeline, and eventually into a modular open-source Astro theme.

Tip

Standalone Astro / Unified Plugins: As this stack matured, three zero-dependency Markdown plugins were extracted into standalone packages: rehype-mermaid-a11y (GitHub), rehype-tech-tooltips (GitHub), and remark-youtube-facade (GitHub).

Ed Stuurman

About the author

Ed Stuurman

Senior infrastructure and reliability engineer based in Kanagawa, Japan. Focused on resilient cloud architecture with AWS and Terraform, enterprise mail migrations, Linux systems, and homelab engineering.

Contact

Thoughts or questions on this article?

Found a bug, tested a similar setup, or want to discuss the details? Drop a message below.

Emails are delivered directly to ed@stuurman.com.

Quick searches

Search across technical articles, logs, career milestones, and photography notes.

Type to search