NAT Gateway can be shared via VPC peering

0

Hi Team,

We have two VPC's in same region and same account. We are using separate NAT gateway for each VPC. So we are planning to remove one NAT gateway.

Is it achieved with VPC peering.?

Or are there any other solutions for it?

1 Answer
0
Accepted Answer

You can't (easily) share a NAT Gateway between peered VPCs.

You can do it by placing a proxy server in the VPC with the shared NAT Gateway - but then you have to configure that proxy server on everything in the VPC without the NAT Gateway which may be inconvenient (at best) or impossible (at worst - if applications don't support the proxy).

You can share a NAT Gateway by using Transit Gateway to connect the VPCs together. However, that adds extra cost (perhaps more than you are saving by removing a NAT Gateway). For more than two VPCs this could be a viable option-wise.

profile pictureAWS
EXPERT
answered a year ago
profile picture
EXPERT
reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions