Impact of Adding NAT Gateway on Network Latency in a VPC with an On-Premise Gateway

0

Hi, I have deployed an ECS Fargate using an existing VPC that has an on-premise gateway. The infrastructure was deployed using Terraform and, initially, the ECS was able to pull images from ECR. However, when I deployed the service using a GitHub action, the task was unable to pull images from ECR and timed out with an error message saying "unable to pull images from repository, API timeout." To fix this issue, I created a public NAT gateway associated with the VPC and created a NAT route to the private subnet.

However, I have noticed that other services deployed in AWS are now reporting huge network latency when they connect to the on-premise. Could this be happening as a result of adding the NAT?

preguntada hace un año549 visualizaciones
1 Respuesta
1

NAT Gateway won't add more than a few ms of latency. However, a NAT Gateway won't need to be in the path to connect to on-prmises. As long as there is a route in the private subnet(s) that routes to the on-premises gateway, traffic will not flow through the NAT Gateway.

profile pictureAWS
respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas