All Products
Search
Document Center

Function Compute (2.0):How do I configure an IP address whitelist when I access a database from Function Compute?

Last Updated:Feb 01, 2024

To configure an IP address whitelist when you access databases such as ApsaraDB RDS or other types of databases, perform the following steps:

  • If you are using an internal endpoint, you must enable VPC access for a service in Function Compute. For more information, see Configure network settings. Then, find the database instance and add the CIDR block of the vSwitch that you configured for the service to the whitelist. For more information, see Configure a whitelist.

  • If you are accessing a public endpoint, you must configure a public IP address. For more information, see Configure static public IP addresses. Then, find the database instance and add the public IP addresses to the whitelist. For more information, see Configure a whitelist.