How do I configure an IP address whitelist when I access a database from Function Compute?
Updated at:
To configure an IP address whitelist when accessing databases such as ApsaraDB RDS from Function Compute, follow the steps for your access type.
Access a database over an internal endpoint
Enable VPC access for your Function Compute service in advance. See Configure network settings.
Find the database instance you want to access, then add the CIDR block of the vSwitch configured for your service to the IP address whitelist. See Configure a whitelist.
Access a database over a public endpoint
Configure a static public IP address for your Function Compute service. See Configure static public IP addresses.
Find the database instance you want to access, then add the static public IP address to the IP address whitelist. See Configure a whitelist.
Is this page helpful?