By default, a newly created database instance does not allow access from IP addresses that are not included in its whitelists. To allow Realtime Compute for Apache Flink to access the database instance, you must add the IP addresses of Realtime Compute for Apache Flink to a whitelist of the database instance. This topic describes how to add the IP addresses of Realtime Compute for Apache Flink to a whitelist of an ApsaraDB for RDS instance.

IP addresses to be added to the whitelist

To access storage resources from a Realtime Compute for Apache Flink cluster in exclusive mode, you only need to add the IP addresses of the ENI to the whitelist. To view the IP addresses of the ENI, perform the following steps:
  1. Log on to the .
  2. Move the pointer over the username in the upper-right corner.
  3. In the drop-down list, click Project Management.
  4. In the left-side navigation pane, click Clusters.
  5. On the Clusters page, click the name of the target cluster.
  6. In the cluster information dialog box, view the ENI of the cluster.

Configure a whitelist for an ApsaraDB for RDS instance

When you reference an ApsaraDB for RDS database in Realtime Compute for Apache Flink, Realtime Compute for Apache Flink needs to frequently read and write data in the ApsaraDB for RDS database. In this case, you must add the IP addresses of Realtime Compute for Apache Flink to a whitelist of the ApsaraDB for RDS instance. For more information, see Configure a whitelist for an ApsaraDB RDS for MySQL instance.