D-01Cost
VPC is a switch, not a default
Placing Lambdas in private subnets needs three NAT gateways, about $97/month fixed, which pushes the floor from ~$25–35 to ~$135–175/month. A single enableLambdaVpc flag lets each environment pick isolation or cost.
D-02Data
Single-table DynamoDB
Orders keyed by user plus a GSI ordered by creation time: one query for “my orders”, strict cursor validation, and a stream that carries every change downstream.
D-03Events
SNS → SQS fan-out
Email and the data lake scale, retry and fail independently, with DLQs on each queue, so a slow consumer can never block checkout.
D-04Resilience
Replicate what audit requires
Only the 10-year audit trail is replicated to a second region with its own KMS key. That keeps multi-region cost focused where the requirement lives.
D-05Delivery
One bundle, many handlers
esbuild produces a single backend artifact; CDK wires each Lambda to a named export. One build, consistent dependencies, fast deploys.
D-06Access
No long-lived keys anywhere
GitHub Actions assumes a deploy role through OIDC, pinned to a protected aws environment. Nothing to rotate, nothing to leak.