NAT Gateway can be shared via VPC peering


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 Resposta
Resposta aceita

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
respondido há um ano
profile picture
avaliado há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas