Skip to main content

Private Network Connectivity

This page describes how the Cloud Run service accesses other resources in your Tencent Cloud account (e.g., cvm, mysql, redis, etc.).

By default, the cloud function service cannot communicate over the private network with other resources in your Tencent Cloud account (e.g., cvm, mysql, redis, etc.). If you need to access other resources, you must enable the private network connectivity feature for the service.

Enable the Private Network Connectivity Feature

Activation Prerequisites:

  • You need to Tencent Cloud VPC to create a VPC network segment.
  • Region selection
  • For the VPC network segment, use a subnet mask >= 22.
  • For the subnet, use a subnet mask <=28. This subnet will be occupied by the Cloud Run service. Please avoid creating other resources in this subnet to prevent impacting the Cloud Run service.

Activation:

Function Details Function Configuration , click to enable the configuration, select the VPC network segment and subnet that need to be interconnected, then click Save.

Usage Notes

  • Ensure that there are available IP addresses in the VPC network. Otherwise, the Cloud Run service instance may fail to start up due to the inability to allocate an IP address.