The connection details you need to provide can differ depending on what destination connectivity you use. This page describes how to create destination connection profiles for each available connectivity method:
Before you begin
Before you create a destination connection profile, make sure you do the following:
Consider in which region you want to create the destination connection profile.
Database Migration Service is a fully-regional product, meaning all entities related to your migration (source and destination connection profiles, migration jobs, destination databases, conversion workspaces) must be saved in a single region.
Configure your destination database and create a dedicated migration user account.
Choose and configure the destination connectivity method.
Destination database connections are always encrypted by Database Migration Service. You don't need to configure additional certificates for those connections.
For public IP connectivity
To create a destination connection profile that uses the public IP connectivity method, follow these steps:
- In the Google Cloud console, go to the Connection profiles page.
- Click Create profile.
- From the Database engine list, select Cloud SQL for PostgreSQL.
- In the Specify connection profile details section, provide the connection profile name, identifier, and region.
- In the Define connection configurations, in the
SQL Server or Oracle to PostgreSQL card, click Define.
The connectivity details panel opens.
- In the Define connection details panel, do the following:
- From the Instance ID drop-down menu, select your Cloud SQL destination instance identifier.
- In the Hostname and IP field, enter your destination instance public IP address.
- In the remaining fields, enter the port number and the login details for the dedicated migration user account (name and password).
- In the Define connectivity method section, from the Connectivity method drop-down menu, select Public IP.
- Click Save.
The connection details panel closes.
- (Optional) In the Test connection profile section, click Run test.
Database Migration Service performs a quick check to verify that the connection details you supplied are sufficient to reach your data.
- Click Create at the bottom of the page.
The Connection profiles page appears, and the newly created connection profile is displayed.
For private IP connectivity
To create a destination connection profile that uses the private IP with Private Service Connect connectivity method, follow these steps:
- In the Google Cloud console, go to the Connection profiles page.
- Click Create profile.
- From the Database engine list, select Cloud SQL for PostgreSQL.
- In the Specify connection profile details section, provide the connection profile name, identifier, and region.
- In the Define connection configurations, in the
SQL Server or Oracle to PostgreSQL card, click Define.
The connectivity details panel opens.
- In the Define connection details panel, do the following:
- From the Instance ID drop-down menu, select your Cloud SQL destination instance identifier.
- In the Hostname and IP field, enter the DNS name configured for your instance.
- In the remaining fields, enter the port number and the login details for the dedicated migration user account (name and password).
- In the Database name field enter the name for the destination database. If you don't provide a name, Database Migration Service creates the destination database with the same name as the dedicated migration user account.
- In the Define connectivity method section, do the following:
- From the Connectivity method drop-down menu, select Private IP.
- From the Service attachment name select the service attachment you created for the destination instance Private Service Connect connection.
- Click Save.
The connection details panel closes.
- (Optional) In the Test connection profile section, click Run test.
Database Migration Service performs a quick check to verify that the connection details you supplied are sufficient to reach your data.
- Click Create at the bottom of the page.
The Connection profiles page appears, and the newly created connection profile is displayed.