Switch the network type

更新时间:
复制 MD 格式

By default, AnalyticDB for PostgreSQL instances use a VPC. If your instance is in a classic network, you can switch it to a VPC. The instance and the destination VPC must be in the same region.

Background

A Virtual Private Cloud (VPC) provides an isolated network environment on Alibaba Cloud where you can customize route tables, CIDR blocks, and gateways. You can connect your on-premises data center to your VPC resources over a leased line or VPN connection for a smooth migration to the cloud.

Procedure

  1. Create a VPC in the same region as your target AnalyticDB for PostgreSQL instance.

  2. Log on to the AnalyticDB for PostgreSQL console.

  3. In the upper-left corner of the console, select a region.

  4. Find the instance that you want to manage and click the instance ID.

  5. In the left-side navigation pane, choose Database Connection to open the Connection Information page.

  6. Click Switch to VPC. The Switch to VPC panel opens.

  7. Select a VPC and a vSwitch, and then click OK.

    Important

    After you switch to a VPC, the internal endpoint switches from the classic network to the VPC. Consequently, ECS instances in the classic network cannot access the AnalyticDB for PostgreSQL instance. The public endpoint is unaffected.