All Products
Search
Document Center

Cloud Migration Hub:Create resources

Last Updated:Sep 27, 2023

This topic describes how to create resources in Cloud Migration Hub (CMH).

Feature overview

The procedures for creating and migrating resources vary based on migration plans. You do not need to create or migrate some types of resources. The following table describes whether resource creation is required for different types of resources. Create resources based on your resource types.

Resource type

Alibaba Cloud cross-zone migration plan

AWS migration plan

Elastic Compute Service (ECS) instance

Created during resource migration

-

ApsaraDB RDS instance

Resource creation is not required

-

ApsaraDB for Redis instance

Resource creation is not required

-

Server Load Balancer (SLB) instance

Resource creation is required

-

vSwitch

Resource creation is required

-

Amazon Web Services (AWS) Elastic Compute Cloud (EC2) instance

-

Resource creation is required

AWS Relational Database Service (RDS) instance

-

Resource creation is required

Procedure

You can click Go to Create Resources for a resource in a migration plan to go to the Preparation > Create resources page for the migration plan. After you select the required resources and submit the request for creating multiple resources at a time, CMH initiates an automated task in the Infrastructure as Code (IaC) Service console and uses Terraform to create cloud resources for you. The migration process takes several minutes. You can view the migration progress based on the task status, click the link next to Code link to view the Terraform code of the automated task in the IaC Service console, or click the link next to Task link to track the progress of the automated task in the IaC Service console.

Manage permissions

If you use a RAM user or RAM role, your account must have the permissions on IaC Service and the resources to be created. Make sure that the required permissions are granted to your account before you create resources.

For more information about how to manage permissions, see Manage permissions for CMH. The following table describes the permissions that are required for Alibaba Cloud cross-zone migration.

Policy

Scenario

Remarks

AliyunAPDSFullAccess

Use the CMH console.

The full permissions on CMH.

AliyunIaCServiceFullAccess

Migrate data across zones in Alibaba Cloud or from AWS to Alibaba Cloud.

The full permissions on IaC Service.

AliyunVPCFullAccess

Migrate data across zones in Alibaba Cloud.

The full permissions on Virtual Private Cloud (VPC).

AliyunSLBFullAccess

Migrate data across zones in Alibaba Cloud.

The full permissions on SLB.

Create vSwitches

Note

You need to create vSwitches only for an Alibaba Cloud cross-zone migration plan.

1. Log on to the CMH console. In the left-side navigation pane, choose Preparation > Migration plan. On the Migration plan page, click the name of the migration plan that you want to view. In the Plan details section, find the Create vSwitch step and click Go to Create Resources in the Actions column.

image

image

2. Select the source vSwitches for which you want to create destination vSwitches and click Parameter modification in the Remarks column or click Batch configuration. The Modify configuration panel appears.

Note: You cannot select different types of resources at the same time. For example, you cannot select a vSwitch and an SLB instance at the same time.

image

3. Enter the CIDR blocks of the destination vSwitches and click Yes.

Each destination vSwitch is created in the same VPC as the source vSwitch. After you configure the CIDR block of each destination vSwitch, select all the mappings of the source and destination vSwitches and submit the request for creating multiple resources at a time. CMH automatically creates the destination vSwitches.

image

After the modification, the CIDR blocks of destination vSwitches are displayed.

image

4. Initiate the task for creating vSwitches.

You cannot select different types of resources at the same time. Select the source vSwitches for which you want to create destination vSwitches and click Batch create resources.

image

5. View the task status.

After you submit the request for creating multiple resources at a time, the value of the Task status field changes to terraform resource export in the Resource creation details section.

image

After the task is complete, you can view the details of the created resources.

View the details of created resources

Wait until the task is complete and refresh the page. The destination vSwitches are created. The ID and status of each destination vSwitch are updated on the page. You can click the ID of a destination vSwitch to go to the details page of the vSwitch.

Important

Note: Resources that have been created cannot be created again.

Create SLB instances

Note

You need to create SLB instances only for an Alibaba Cloud cross-zone migration plan.

1. Log on to the CMH console. In the left-side navigation pane, choose Preparation > Migration plan. On the Migration plan page, click the name of the migration plan that you want to view. In the Plan details section, find the Create SLB step and click Go to Create Resources in the Actions column.

image

2. Select the source SLB instances for which you want to create destination SLB instances and click Parameter modification in the Remarks column or click Batch configuration. The Modify configuration panel appears. Select a VPC and a vSwitch for each destination SLB instance and click Yes.

Note: You cannot select different types of resources at the same time. For example, you cannot select a vSwitch and an SLB instance at the same time.

imageimage

3. Initiate the task for creating SLB instances. You cannot select different types of resources at the same time.

Select the source SLB instances for which you want to create destination SLB instances and click Batch create resources. In the message that appears, click Submit. After the SLB instances are created, a message appears in the upper part of the page.

image

4. View the task status.

After you submit the request for creating multiple resources at a time, the value of the Task status field changes to terraform resource export in the Resource creation details section.

image

After the task is complete, you can view the details of the created resources.

View the details of created resources

Wait until the task is complete and refresh the page. The destination SLB instances are created. The ID and status of each destination SLB instance are updated on the page. You can click the ID of a destination SLB instance to go to the details page of the SLB instance.

Create ECS instances

Note

You need to create ECS instances for an AWS migration plan or an IDC migration plan.

1. Log on to the CMH console. In the left-side navigation pane, choose Preparation > Migration plan. On the Migration plan page, click the name of the migration plan that you want to view. In the Plan details section, find the Create ECS step and click Go to Create Resources in the Actions column.

image

2. Select the AWS EC2 instances for which you want to create destination ECS instances and click Parameter modification in the Remarks column or click Batch configuration. The Modify configuration panel appears. If you modify the configurations for multiple ECS instances at a time, only the selected parameters are submitted. The following note describes the parameters that you must modify.

image
Note

VPC, Security Group, and Switch: If no option is available for a parameter, the corresponding resource is not created in the destination region or zone. Go to the VPC console to create a VPC and a vSwitch. Go to the ECS console to create a security group.

Instance type: The system automatically selects an instance type based on the mapped instance type of the AWS EC2 instance. If the recommended instance type does not meet your requirements or the inventory is insufficient, you can change the instance type.

Payment Method: We recommend that you use the pay-as-you-go billing method. In this case, you are charged on an hourly basis. Make sure that your account balance is greater than or equal to CNY 100. If you select the subscription billing method, the instance fee for the specified subscription duration is deducted in a one-off manner.

System disk type, System disk size, and image: The system disk capacity affects the price of the instance.

Maximum public network outbound bandwidth: If this parameter is set to 0, Internet access is disabled for the instance. If this parameter is not set to 0, Internet access is enabled, and a network fee is charged.

Modify the parameters and click Yes. The system checks the inventory based on the specified configurations. If an instance cannot be created, the system displays the parameter for which the inventory is insufficient. You can modify the parameter and submit the modification again.

3. Select the source EC2 instances for which you want to create destination ECS instances and click Batch create resources.

  • In the message that appears, the Terraform code for creating the configured resources is displayed. Verify that the configurations are correct and click Submit.

image

4. View the task status.

After you submit the request for creating multiple resources at a time, the value of the Task status field changes to terraform resource creation in the Resource creation details section.

image

After the task is complete, you can view the details of the created resources.

View the details of created resources

Wait until the task is complete and refresh the page. The destination ECS instances are created. The ID and status of each destination ECS instance are updated on the page. You can click the ID of a destination ECS instance to go to the details page of the ECS instance.

Create ApsaraDB RDS instances

Note

You need to create ApsaraDB RDS instances for an AWS migration plan or an IDC migration plan.

1. Log on to the CMH console. In the left-side navigation pane, choose Preparation > Migration plan. On the Migration plan page, click the name of the migration plan that you want to view. In the Plan details section, find the Create RDS step and click Go to Create Resources in the Actions column.

image

2. Select the AWS RDS instances for which you want to create destination ApsaraDB RDS instances and click Parameter modification in the Remarks column or click Batch configuration. The Modify configuration panel appears. If you modify the configurations for multiple ApsaraDB RDS instances at a time, only the selected parameters are submitted. The following note describes the parameters that you must modify.

image
Note

VPC and Switch: If no option is available for a parameter, the corresponding resource is not created in the destination region or zone. Go to the VPC console to create a VPC and a vSwitch.

Type of payment: We recommend that you use the pay-as-you-go billing method. In this case, you are charged on an hourly basis. Make sure that your account balance is greater than or equal to CNY 100. If you select the subscription billing method, the instance fee for the specified subscription duration is deducted in a one-off manner.

Type and Type version: Select the type and version of the database engine.

Series: If you select High availability version, you must also modify the Standby node zone and Standby node switch parameters.

Storage type, Instance type, and Storage space: The instance type and storage capacity affect the price of the instance.

Modify the parameters and click Yes. The system checks the inventory based on the specified configurations. If an instance cannot be created, the system displays the parameter for which the inventory is insufficient. You can modify the parameter and submit the modification again.

Note

If you create an ApsaraDB RDS for PostgreSQL instance for the first time, you must use your Alibaba Cloud account or a RAM user that has the required permissions to perform service-linked role authorization. This way, the ApsaraDB RDS for PostgreSQL instance can access the Elastic Network Interface (ENI) service and create managed ENIs. For more information about the service-linked role, see Service-linked roles.

3. Select the source AWS RDS instances for which you want to create destination ApsaraDB RDS instances and click Batch create resources. In the message that appears, the Terraform code for creating the configured resources is displayed. Verify that the configurations are correct and click Submit.

image

4. View the task status.

After you submit the request for creating multiple resources at a time, the value of the Task status field changes to terraform resource creation in the Resource creation details section.

image

After the task is complete, you can view the details of the created resources.

View the details of created resources

Wait until the task is complete and refresh the page. The destination ApsaraDB RDS instances are created. The ID and status of each destination ApsaraDB RDS instance are updated on the page. You can click the ID of a destination ApsaraDB RDS instance to go to the details page of the ApsaraDB RDS instance.

View the details of created resources

When the task is running, you can click Jump to automation service desk in the Resource creation details section to view the task details in the IaC Service console.

imageimage

Click View Details to view the task logs. If an error is reported, troubleshoot the error based on the logs.

image