首页 Function Compute Function Compute FAQ Function management How do functions in a VPC access the Internet?

How do functions in a VPC access the Internet?

更新时间: 2026-04-01 08:32:39

To enable internet access for functions connected to a virtual private cloud (VPC), use one of the following two approaches.

Option 1: Enable internet access in the console

In the Function Compute console, set Access to Internet to Yes. For configuration steps, see Configure network settings.

Option 2: Route internet traffic through a NAT gateway

Create an Internet NAT gateway in your VPC, then set Access to Internet to No in the console. The function reaches the internet through the NAT gateway.

上一篇: How can my function in a VPC access classic network resources? 下一篇: How can I resolve the "vSwitch is in unsupported zone" error?
阿里云首页 函数计算 相关技术圈