When your business no longer requires exclusive host resources, move your Elastic Compute Service (ECS) instances from a Dedicated Host (DDH) to a shared host to reduce deployment costs.
After migration, billing shifts from DDH host-level charges to per-instance vCPU and memory charges.
Prerequisites
Before you begin, make sure that you have:
-
An ECS instance that uses pay-as-you-go billing. To migrate a subscription instance, first change its billing method to pay-as-you-go
-
A stopped ECS instance. See Stop an instance
Stopping an ECS instance interrupts services running on it. Proceed with caution.
Limitations
ECS instances with local SSDs cannot be migrated from a dedicated host to a shared host.
Billing
After migration, you are billed for vCPUs and memory. These costs are no longer included in DDH bills. Make sure your account has enough balance. For details, see Pay-as-you-go.
Migrate an instance to a shared host
Log on to the ECS console.
-
Log on to the ECS console.
-
In the left-side navigation pane, choose Instances & Images >
> Dedicated Hosts. -
In the top navigation bar, select the region and resource group.

-
On the Hosts page, find the dedicated host that contains the instance you want to migrate, then click Details in the Actions column.

-
Find the ECS instance, then click Change Host in the Actions column.

-
In the Change Host dialog box, set the following parameters.
Parameter Description Destination Host Select Shared Host. Target Instance Type Enter a destination instance type, such as ecs.g6.large. The destination type must be supported as a change from the source type (see Instance families that support instance type changes) and must be available in the zone where the dedicated host resides. For a full list of instance types, see Overview of instance families.Migration Method The only valid value is Stop and Migrate. The instance must be in the Stopped state. 
-
Click OK. After migration completes, the instance automatically starts and enters the Running state.
Verify the migration
To confirm the instance is running on a shared host:
-
In the ECS console, go to the Instances page.
-
In the upper-right corner of the page, click the
icon.
-
Select Dedicated Host, then click OK.
-
In the Dedicated Host column, check the value for your instance:
-
If a dedicated host ID and name are shown, the instance is still on a dedicated host.
-
If - is shown, the instance is on a shared host.

-
What's next
-
Automate with the API: Use ModifyInstanceDeployment to perform the same migration programmatically.
-
Reverse the migration: To move the instance back to a dedicated host, see Migrate an ECS instance from a shared host to a dedicated host.