8 Open Source Modules

Production-Ready
Terraform Modules
for AWS

Battle-tested infrastructure as code — from VPC networking to CI/CD pipelines. Each module is built from real production experience managing 1000+ customer subdomains.

8

Modules

MIT

Licensed

TF 1.5+

Compatible

AWS 5.0+

Provider

Networking & Compute

The Foundation

NETWORKING

terraform-vpc-production

Multi-AZ VPC with public, private, and database subnets. NAT Gateway (single or HA), DB subnet group, and locked-down default security group.

VPC Multi-AZ NAT Subnets
BEGINNER FRIENDLY

terraform-ec2-nginx

Launch a production-ready EC2 with Nginx pre-configured in one apply. Includes SSL via Certbot, security hardening, fail2ban, and custom HTML support.

EC2 Nginx SSL fail2ban
View on GitHub
Database & Containers

The Application Layer

terraform-rds-production

RDS in private subnets with AES-256 encryption, gp3 storage, automated backups, Performance Insights, and parameter group support.

RDS MySQL PostgreSQL Encrypted
View on GitHub

terraform-eks-production

EKS cluster with managed node groups, IRSA (IAM Roles for Service Accounts), OIDC provider, cluster logging, and spot instance support.

EKS Kubernetes IRSA Spot
View on GitHub

terraform-ecs-fargate-service

Serverless container deployment with auto-scaling, deployment circuit breaker with rollback, secrets management, and Container Insights.

ECS Fargate Auto-Scale Serverless
View on GitHub
Delivery & Optimization

Ship & Save

terraform-s3-cloudfront-site

Static website hosting with S3, CloudFront CDN, custom domain, auto-provisioned SSL, and SPA routing support for React/Vue/Angular.

S3 CloudFront SSL SPA
View on GitHub

terraform-cicd-pipeline

Complete CI/CD infrastructure — ECR with image scanning, GitHub Actions OIDC (no access keys), and ready-to-use workflow templates for ECS and EKS.

ECR GitHub OIDC ECS Deploy EKS Deploy
View on GitHub
SAVE 65%

terraform-scheduled-scaling

Automatically stop dev/staging EC2 and RDS at night, start in the morning. Lambda-based scheduling with EventBridge cron — save up to 65%.

Lambda EventBridge FinOps Cost Saving
View on GitHub
Quick Start

Use Any Module in 3 Steps

01

Reference the Module

source = "github.com/akshayghalme/
terraform-vpc-production"
02

Set Your Variables

name = "my-app"
vpc_cidr = "10.0.0.0/16"
availability_zones = [...]
03

Apply

$ terraform init
$ terraform plan
$ terraform apply

Built from Real
Production Experience.

Every module is based on infrastructure I've built and maintained at scale — managing 1000+ customer subdomains with 99.9% uptime and ~80% cost reduction.