Interview Prep/Networking/VPC & Cloud Network Design

Design egress from private subnets that is stable for partners who allow-list your IPs.

IntermediateScenarioVPC & Cloud Network Design
Answer

Situation read → Partners need a small, predictable set of source IPs.

What I'd do →

  1. Route private subnets through NAT gateways with Elastic IPs (one per AZ)
  2. Give the partner the three EIPs and document them
  3. Consider centralized egress in a dedicated VPC through a TGW so IPs are shared across accounts
  4. Use aws ec2 describe-nat-gateways to print the current IPs and alert if they change

Why → Elastic IPs on NAT gateways are static for as long as you keep them, unlike instance public IPs.

Interview tip → Mention BYOIP if the partner wants IPs your company owns.

All Networking questions Roadmap: Networking for DevOps

More on VPC & Cloud Network Design