Attach a VPC to a DBaaS instance so that anything inside the VPC can reach it on its private address. You can attach up to three VPCs to one DBaaS instance.
Before you begin
Section titled “Before you begin”You need a DBaaS instance that reads Running, and your application’s nodes in a VPC; see VPC.
Attach a VPC
Section titled “Attach a VPC”- On the DBaaS instance’s Network tab, click Add VPC.
- In Attach VPC, choose the VPC your application’s nodes are in.
- (Optional) Choose a subnet in Select Subnet (Optional).
- Click Attach.
Anything inside that VPC can now reach the DBaaS instance on its Private IPv4. If the whitelist has any IPs on it, add the VPC’s range (its CIDR) to the whitelist too; the whitelist applies to connections over the VPC as well. See Whitelist an IP address and Connect to a DBaaS instance.
Detach a VPC
Section titled “Detach a VPC”If a Read Replica in the other region syncs through this VPC, detaching the VPC pauses that sync until you reattach the VPC; see Create a Read Replica.
- On the DBaaS instance’s Network tab, open the VPC’s row menu and click Detach.
- In Detach VPC, click Detach.
The DBaaS instance stays reachable on its Private IPv4 from the VPCs still attached to it. To connect from one of them, see Connect to a DBaaS instance.