Skip to main content
This feature is in preview and subject to change. To share feedback and/or issues, contact Support.
This page describes how to deploy and delete an instance of the Migration Assistant using the Cloud Console or the Cloud API. At a high level, you take the following steps:
  1. Create a Migration Assistant instance for an eligible target cluster using the Console or Cloud API.
  2. Use the instance to migrate your data, as described in Use the Migration Assistant.
  3. Delete the instance when the migration is complete.
The Assistant does not create or configure the target database cluster. Use the Cloud Console or ccloud CLI to create or identify a target cluster that meets the Migration Assistant eligibility requirements, and configure its IP allowlist before you deploy the Assistant.

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 ccloud and 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.
  1. Log in to the Cloud Console and select the organization that contains the target cluster.
  2. On the target cluster’s Networking page, add your network to the IP allowlist.
  3. In the left navigation, click Migrations, then click New migration.
  4. Select the Target cluster. The target must meet the eligibility requirements.
  5. 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.
  6. Click Continue. The instance appears with status Deploying. The page updates automatically; provisioning typically takes 10 to 20 minutes.
  7. When the status is Ready, continue to Access the Assistant.
The Status column has the following values:
Each instance is dedicated to your migration. It runs on isolated capacity alongside your cluster, with its own TLS certificate, and is separate from the infrastructure running the cluster itself.

Access the Assistant

  1. 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 url from the RUNNING response in a browser.
  2. Sign in with your Cockroach Cloud account. You must be a member of the target cluster’s organization.
The Assistant instance serves only your migration, and is reachable only from networks on the cluster’s IP allowlist. If the URL times out, verify that the allowlist contains your network’s current public IP address in the Console under Networking, or use 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 SELECT the data to migrate.

Delete the instance

When your migration is complete:
  1. Download any converted DDL, scripts, or reports you want to keep.
  2. In the Console, go to Migrations. For the target cluster, open the Actions menu and select Delete migration.
  3. In the confirmation dialog, click Delete. The row shows Deleting until the instance is removed.
Deleting the Assistant stops any migration in progress and releases its dedicated compute. Deletion is available once deployment completes or fails.

See also