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 Antwort
0
Akzeptierte Antwort

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
EXPERTE
beantwortet vor einem Jahr
profile picture
EXPERTE
überprüft vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen