Skip to main content

IaC Lab: A Modular Terraform Framework for AWS

I kept rebuilding the same infrastructure patterns for different projects. VPC setup, load balancers, ECS clusters, RDS databases. Copy-paste Terraform from old projects, spend hours debugging why it broke in the new environment.

This lab solves that problem with a modular framework that supports three compute platforms (EC2 Auto Scaling, ECS, EKS) behind the same networking and database modules. You can redeploy the same application architecture on a different compute platform by changing one variable.

The more useful thing it builds is a habit: global state versus environment state, true parity across dev and prod, infrastructure you can hand to someone else without explaining everything from scratch.