TF
MILU2 Docs
MILU2 Stage (Terraform)
OverviewInfrastructure ArchitectureFile StructureModule ReferenceDeployment GuideTroubleshooting
MILU2 Infra Main (OpenTofu)
OverviewArchitectureFile StructureModule ReferenceVariablesDeploy GuideCI/CD PipelineOperation RunbookTroubleshootingSecrets ManagementCost Estimation

Module Reference

List of 17 Stage modules + 3 Shared modules

Stage Modules

15 per-region modules, created for each deployment:

01-VPC
Virtual Private Cloud with auto CIDR from stage_index
02-Subnets
Public subnets across 2 AZs
03-Internet Gateway
Internet Gateway for VPC
04-Route Tables & Peering
Route tables and VPC Peering with Build VPC
05-Security Groups
7 Security Groups by role
06-ALB
Application Load Balancer (internal + internet-facing)
07-NLB
Network Load Balancer for MySQL/Mongo/Redis
08-Target Groups & Listeners
Target Groups and Listeners for ALB/NLB
09-Auto Scaling
ASG + Launch Template for API tier
11-ECR
Elastic Container Registry (7 repos)
12-ACM
AWS Certificate Manager + DNS validation
13-Route53
Private Hosted Zones for internal DNS
15-IAM
IAM Role and Instance Profile (data source)
16-CloudWatch
CloudWatch Alarms for ASG and ALB
17-EC2 Instances
Fixed EC2 instances (12 roles with for_each)

Shared Modules

3 global/account-level modules, run once per account:

Shared: S3
4 shared S3 Buckets
Shared: IAM
Shared IAM Role + Instance Profile
Shared: CloudFront
2 CloudFront Distributions + ACM us-east-1