Skip to main content
Cloud & DevOps

Terraform modules we reuse on every project

Mar 5, 2026·6 min read·Godwill
Terraform modules we reuse on every project

Introduction

Every project we run starts on AWS, and none should start from a blank file. These are the modules we reuse on every engagement — opinionated, secure by default, boring in the best way.

The Modules

1. Network Baseline A VPC with public and private subnets across two availability zones, NAT, and flow logs — the same network shape every time, so nothing is ever "temporarily" exposed.

2. App Service ECS Fargate behind an ALB with HTTPS, health checks, autoscaling, and log shipping wired in. Point it at a container image and it handles the rest.

3. Data Tier RDS with encryption, automated backups, and production parameter groups from day one, plus an S3 module that blocks public access and enables versioning and lifecycle rules by default.

4. Identity and Secrets IAM roles scoped per service, never shared, with secrets pulled from Secrets Manager at runtime. No long-lived access keys in code or CI.

5. Observability Pack CloudWatch dashboards, alarms, and log retention as a module — monitoring ships with the infrastructure instead of being bolted on after the first incident.

Conclusion

Modules pay off when they're small, composable, and documented with a working example. Steal this list and stop rebuilding the same VPC by hand.

G

Written by Godwill

Founder of Maralito Labs

Read more about the founder →