We deployed into the wrong subnet and nothing spoke back. The logs were clean, the code was fine, but the packets vanished. That’s when we knew the proxy in a private VPC subnet was the real test.
Integration testing with a VPC private subnet proxy is not theory. It’s the moment you run real services in a locked-down network path and expect them to behave like production. There’s no internet egress. Every call routes through an internal proxy. DNS settings, firewall rules, NAT gateways — each part has to be right or the system dies quietly.
A true integration test here means deploying actual components — APIs, services, and dependencies — into that exact network topology. Mocked environments miss it. They hide latency patterns, proxy quirks, and connection pooling issues that only show up in a real subnet. The only way to know if your service can survive is to place it where it would actually live and let it run.
The deployment steps matter. Start with a dedicated private subnet in your VPC. Isolate it from internet traffic. Configure a proxy inside the subnet to handle outbound requests. Point every dependent service to use that proxy. Enforce security groups that block direct internet egress. Then, deploy your integration test build to this subnet and run the full workflow — API calls, third-party integrations, message queues, database access — exactly as they happen in production.