AWS Cloud Deployment (Terraform)
medOS ships with a production-grade Terraform module that stands up the full stack on AWS — VPC, ECS Fargate, ALB, S3/CloudFront, RDS, DocumentDB, ECR.
~$460-650
Per region / month
~$300-450
With Fargate Spot
Fargate
Compute
Layout
infrastructure/terraform/
├── modules/medos-stack/ # Shared module
│ # (VPC, ECS Fargate, ALB, S3/CloudFront,
│ # RDS, DocumentDB, ECR)
├── regions/japan/ # ap-northeast-1
└── regions/philippines/ # ap-southeast-1
Deploy a region
cd infrastructure/terraform/regions/japan
cp terraform.tfvars.example terraform.tfvars # fill in passwords
terraform init
terraform plan
terraform apply
Compute
ECS Fargate
All microservices run as Fargate tasks behind an ALB.
ECSFargate
Store
DocumentDB + RDS
DocumentDB for MongoDB workload, RDS PostgreSQL for e-form + Supabase.
DocumentDBRDS PostgreSQL
Web
S3 + CloudFront
Frontend served from S3 behind CloudFront.
S3CloudFront
Images
ECR
Per-region ECR for service images.
ECR