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 →
- Route private subnets through NAT gateways with Elastic IPs (one per AZ)
- Give the partner the three EIPs and document them
- Consider centralized egress in a dedicated VPC through a TGW so IPs are shared across accounts
- Use
aws ec2 describe-nat-gatewaysto 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.
More on VPC & Cloud Network Design
What makes a subnet public versus private in AWS?BeginnerExplain internet gateway versus NAT gateway and when you use each.BeginnerPrivate instances need to pull packages from the internet but must not be reachable from it. What do you set up?BeginnerWhy shouldn't production run in the default VPC?BeginnerPublic IP, Elastic IP and private IP: how do they differ on EC2?BeginnerWhy use SSM Session Manager instead of a bastion host?Beginner