简体   繁体   English

Private su.net 中的 EC2 Instance 是否需要此架构上的 Nat Gateway?

[英]Does EC2 Instance in Private subnet need Nat Gateway on this architecture?

I'm planning this architecture bellow.我正在计划下面的架构。 My question is, does this architecture need Nat Gateway in order to the EC2 instance can reach by user?我的问题是,这种架构是否需要 Nat Gateway 才能让用户访问 EC2 实例? My Architecture我的架构

NAT Gateway is only for the EC2 instance to be able to reach outside of the VPC, like to download security updates. NAT 网关只是为了让 EC2 实例能够到达 VPC 之外,比如下载安全更新。 A NAT Gateway is not involved in outside connections being able to initiate connections to the EC2 instance. NAT 网关不参与能够启动与 EC2 实例的连接的外部连接。

In your diagram, the outside connections will connect to a public load balancer.在您的图表中,外部连接将连接到公共负载均衡器。 The load balancer will then be able to connect to the private EC2 instance.然后负载均衡器将能够连接到私有 EC2 实例。 There should be no issue serving traffic through the load balancer without a NAT.在没有 NAT 的情况下通过负载均衡器服务流量应该没有问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AWS:SSH 通过 NAT 网关从公共 su.net EC2 实例到私有 su.net EC2 实例没有发生 - AWS : SSH to private subnet EC2 instance from public subnet EC2 instance via NAT GATEWAY is not happening 为什么通过Session Manager访问私有EC2实例需要NAT Gateway? - Why does accessing private EC2 instance via Session Manager need NAT Gateway? 无法使用 NAT 网关从私有 Ec2 访问 Inte.net - Unable to Reach Internet from Private Ec2 with NAT Gateway AWS 如何从私有 su.net 中的 EC2 实例打开网站 - AWS how to open a website from an EC2 instance in the private subnet 我是否需要 ELB 来访问私有 ECS 容器或 NAT 实例/网关? - Will I need an ELB to access private ECS Containers or a NAT Instance/Gateway? 私有子网上的 AWS EC2 实例出现问题,拒绝特定用户访问 - Issue with AWS EC2 instance on private subnet denied access for specific users 如何在私有 su.net 上托管的 aws ec2 实例中安装 Nginx - How to install Nginx in a aws ec2 instance which is hosted on a private subnet AWS - SSH 在私有 Su.net 中从 ALB 跳转到 EC2? - AWS - SSH Jump from ALB to EC2 in private Subnet? 在私有 su.net 中使用 ec2 连接到 Lambda 服务 - Connecting to Lambda service using ec2 inside a private subnet 如何在 CDK 中创建 NAT 网关,然后将路由添加到指向 CIDR 的私有 su.net? - How to create a NAT Gateway in CDK and then add route to a private subnet pointing CIDR to it?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM