- Create a Migration Assistant instance for an eligible target cluster using the Console or Cloud API.
- Use the instance to migrate your data, as described in Use the Migration Assistant.
- Delete the instance when the migration is complete.
Prerequisites
- Your source database and target cluster meet the Migration Assistant eligibility requirements.
- For Console deployment, your Cockroach Cloud account must have the Cluster Admin role on the target cluster or the Organization Admin role in the organization.
- For Cloud API deployment, install
ccloudand log in to the organization that contains the target cluster. Refer to Get Started with the ccloud CLI. - For Cloud API deployment, create a Cloud API service account and API key. The service account must have the Cluster Admin role on the target cluster or the Organization Admin role in the organization. The key inherits the roles of the service account.
- Your PostgreSQL source database must be reachable over the network from CockroachDB Cloud.
- Know the public IP address or network CIDR that will access the Assistant’s web interface.
Create an instance
Create the instance in the Cloud Console or by calling the Cloud API.- Console
- Cloud API
- Log in to the Cloud Console and select the organization that contains the target cluster.
- On the target cluster’s Networking page, add your network to the IP allowlist.
- In the left navigation, click Migrations, then click New migration.
- Select the Target cluster. The target must meet the eligibility requirements.
- Review the Region. For a single-region cluster, the region is preselected. For a multi-region cluster, select the region where the Assistant runs. You cannot change the region later; to move the Assistant, delete the instance and create it again.
- Click Continue. The instance appears with status Deploying. The page updates automatically; provisioning typically takes 10 to 20 minutes.
- When the status is Ready, continue to Access the Assistant.
Access the Assistant
- In the Console, go to Migrations. For the target cluster with status Ready, open the Actions menu and select Open assistant. The Assistant opens in a new tab. If you use the Cloud API, open the
urlfrom theRUNNINGresponse in a browser. - Sign in with your Cockroach Cloud account. You must be a member of the target cluster’s organization.
ccloud cluster networking allowlist list {cluster-name}. If necessary, add or update the network in the Console or as described in Prepare the target cluster with ccloud.
After you add or update an allowlist entry, the change can take a few minutes to propagate to the Assistant.
Connect your source and target
In the Assistant, connect your source database and run the connectivity check before starting the migration stages. Refer to Use the Migration Assistant. Because the Assistant runs in CockroachDB Cloud, your source database must be reachable from CockroachDB Cloud, not only from your workstation:- The source needs a routable endpoint: a public hostname or IP address, or a private connection path. A database bound to localhost, or reachable only over your VPN, does not work.
- Your network and firewall rules must allow inbound connections from the Assistant on the database port.
- The connection credentials must be able to read the source’s schema catalog and
SELECTthe data to migrate.
Delete the instance
When your migration is complete:- Console
- Cloud API
- Download any converted DDL, scripts, or reports you want to keep.
- In the Console, go to Migrations. For the target cluster, open the Actions menu and select Delete migration.
- In the confirmation dialog, click Delete. The row shows Deleting until the instance is removed.

