forge-docs

0020. Single VPC per environment

Status: Accepted Date: 2026-02-22 Context: Whether web frontends and backends use separate VPCs or one VPC per environment with ALB exposure patterns.

Context

For enterprise microservices (target market), we need a clear stance on network segmentation: one VPC for the whole environment vs. a “frontend” VPC (internet-facing) and a “backend” VPC (restricted), connected via peering or PrivateLink.


Decision

We use a single VPC per environment. Exposure is controlled by ALB security groups: only designated frontends (e.g. ui/* or services with allowInternetTraffic: true) have ALBs that accept traffic from the internet (0.0.0.0/0); all other ALBs are internal (traffic only from ECS services in the same VPC). No separate “frontend” vs “backend” VPC.


Subnet placement (same VPC)


Consequences