Alibaba Cloud ApsaraDB supports two network types: classic network and Virtual Private Cloud (VPC). By default, AnalyticDB for PostgreSQL uses the classic network. If you want to use VPC, ensure that the AnalyticDB for PostgreSQL instance and the VPC are in the same region.
This document mainly describes the differences between the two network types and how to configure the settings.
The classic network and VPC have the following differences:
Classic network: The cloud service in a classic network is not isolated, and unauthorized access can only be blocked by the whitelist policy of the cloud service.
Virtual Private Cloud (VPC): VPC helps you build an isolated network environment on Alibaba Cloud. You can customize the routing table, IP address range and gateway in the VPC. You can also combine your IDC and cloud resources on the Alibaba Cloud VPC into a virtual IDC by using a leased line or VPN to seamlessly migrate applications to the cloud.
Create a VPC in the same region with the target AnalyticDB for PostgreSQL instance.
- Log on to the AnalyticDB for PostgreSQL console.
Select the region where the target instance is located.
Click the ID of the instance to go to the Basic Information page of the instance.
Click Database Connection.
Click Switch to VPC.
Select a VPC and virtual switch, and then click OK.Note
After the network is switched to VPC, the original intranet address changes from a classic network address to a VPC address. ECS on the classic network can no longer access the AnalyticDB for PostgreSQL instance. The original Internet address remains unchanged.
|ModifyDBInstanceNetworkType||Switches the network connection type for an instance.|