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?

已提问 1 年前549 查看次数
1 回答
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
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则