# Amazon Web Services migration instructions

> To migrate your Amazon Web Services (AWS) instance, follow the steps below:

To migrate your Amazon Web Services (AWS) instance, follow the steps below:

1. Upgrade your on-premises environment to 2023.4 or skip this step if you are already in version 2023.4 or later. More details are available in step one from [Migrating from On-premises to Cloud.](https://docs.uipath.com/insights/standalone/2023.10/user-guide/migrating-from-on-premises-to-cloud)
2. Create a new SQL Server database instance with collate `Latin_1_General_CI_AS` in Amazon RDS.
3. In your cloud environment, create a new tenant (it'll be referred to as the cloud tenant from this point onward). Take note of the tenant key as it will be needed later on.
4. Run the [UiPath’s Orchestrator Migration Tool](https://docs.uipath.com/automation-cloud/automation-cloud/latest/admin-guide/using-the-migration-tool) to migrate Orchestrator data from on-premises tenant to the cloud tenant. After this step is complete, navigate to the Orchestrator page and verify that all folders, including classic folders, machines, and queue are migrated to cloud.
   :::note
   If some entities (Processes, Queues, etc.) are missing on cloud, you should manually create them with your on-premises names. If you don’t create missing entities, it will be assumed they have been deleted and proceed accordingly.
   :::
5. Migrate your Insights DB to the new [SQL Server](https://aws.amazon.com/tutorials/move-to-managed/migrate-sql-server-to-amazon-rds/).
6. It's required to have migrated at least the following 7 tables:
   * `dbo.__MigrationHistory`
   * `dbo.JobEvents`
   * `dbo.Jobs`
   * `dbo.Jobs`
   * `dbo.QueueItemEvents`
   * `dbo.QueueItems`
   * `dbo.RobotLogs`
   * `dbo.Tenants`
     :::note
     Make sure the Collation of the DB is `Latin1_General_CI_AS`.
     :::
7. Connect to your database and verify that the required tables are present.
8. Ask UiPath for a list of IP addresses to add to the allow list. In the **Connectivity & security tab**, create a new security group and add these inbound IP addresses to the group.
9. Send a migration request via [Customer Portal](https://customerportal.uipath.com/) with the following information:
   * The AmazonSQL connection string.
   * The TenantKey of the on-premises tenant.
   * The TenantKey of the cloud tenant.
   * The Tenant Name of the cloud tenant
   * The Organization Name of the cloud environment.
   * The region of the cloud tenant.
     :::note
     Insights service downtime is expected until the migration is completed by UiPath Support team. Based on the ticket volume, the migration can take approx two weeks to complete from end to end.
     :::
