私有子网内的 lambda 函数可以通过 vpc 端点访问 vpc 外部的 aws 服务吗?

can a lambda function inside a private subnet access aws services outside the vpc through vpc endpoints?

我正在部署一个应用程序,我在其中使用私有子网内带有 lambda 的 NAT 网关与 vpc 外的其他 AWS 服务通信。一切正常,但 NAT 网关增加了很多额外费用。我假设我是否可以替换 NAT 网关并使用和连接 vpc 端点?

I am assuming if I can replace the NAT gateway and use and interface vpc endpoint instead?

是的,你可以做到。但请注意,并非所有服务都有 VPC 接口端点。此类服务的列表是 here.