将 AWS VPC 私有连接到 NAT

Peering AWS VPC private to NAT

我在 public 子网的 VPC1 中有两个 VPC,有 NAT 网关供私有子网访问互联网...在 VPC2 私有子网中,我有需要访问互联网的 EC2 实例,但我没有如果有办法通过对等发送流量并在 VPC1 中使用 NAT 网关,是否不想将 NAT 网关或 NAT 实例放在 VPC2 的 public 子网中?

遗憾的是,由于 VPC 对等不可传递,因此不支持 here:

If either VPC in a peering relationship has one of the following connections, you cannot extend the peering relationship to that connection:

  • An internet connection in a private subnet through a NAT device

另外:

Similarly, if VPC A has a NAT device that provides internet access to instances in private subnets in VPC A, instances in VPC B cannot use the NAT device to access the internet.