Terraform + AWS + PowerShell
MILU2 Stage Infrastructure
Stage environment infrastructure (game server) running on AWS, deployed with Terraform + PowerShell.
Region-Agnostic
One codebase, deploy to any AWS region
Multi-Deploy
Run multiple stages in parallel within the same account
Fast Setup
From zero to complete environment with a single deploy.ps1 command
Separation
Shared resources vs per-region Stage resources
Quick Access
Start Deploying
Step-by-step guide
Architecture
System diagrams
Modules
17 Stage + 3 Shared
Troubleshooting
Common errors
Tech Stack
Terraform ≥ 1.5AWS ProviderPowerShell 5.1+AWS CLI v2CentOS Stream 9Docker
System Structure
Terraform is split into 2 separate configs, each with its own state file:
| Shared | Stage | |
|---|---|---|
| Scope | Global / account-level | Per-region |
| Resources | S3, IAM, CloudFront | VPC, Subnets, ALB, NLB, EC2, ECR, ACM... |
| State | shared/terraform.tfstate | terraform.tfstate |
| Runs | Once | N times (per region/stage_index) |