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

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:

SharedStage
ScopeGlobal / account-levelPer-region
ResourcesS3, IAM, CloudFrontVPC, Subnets, ALB, NLB, EC2, ECR, ACM...
Stateshared/terraform.tfstateterraform.tfstate
RunsOnceN times (per region/stage_index)