问HN:EC2实例的NAT网关替代方案

1作者: nodesocket6 个月前原帖
我想在多个可用区部署 EC2 实例,并希望这些 EC2 实例仅位于私有子网中,不分配公共 IP 地址。然而,这些实例需要能够进行 API 请求等的外部访问。 NAT 网关的费用是每个可用区每月 32 美元,这还不包括带宽费用,真是贵得离谱。我可以手动部署 NAT 实例,但对于 t5g.small 实例和 EBS,最低每月也要花费大约 8 美元。更不用说 NAT 实例的维护和设置了。 有没有什么聪明的办法可以让位于私有子网中的 EC2 实例访问外部互联网?
查看原文
I’m looking to deploy EC2 instances in multiple availability zones and would like the EC2 instances to only be on the private subnet with no public ip address assigned. However the instances need outbound access for API requests, etc.<p>NAT gateways cost $32&#x2F;mo per AZ and that doesn’t include bandwidth which is absurdly expensive. I could manually deploy NAT instances but still looking at a minimum of around $8&#x2F;mo per for t5g.small instances and EBS. Not to mention the maintenance and setup of the NAT instances.<p>Any clever tricks for outbound internet access for EC2 instances that are in private subnets?