Assign and release ECS instances

Updated at:

After you purchase or import Elastic Compute Service (ECS) instances, you can assign them to or release them from applications. This topic describes how to assign or release ECS instances in the console.

Prerequisites

An application has been created.

Assign ECS instances

  1. Log on to the Resource Management console.

  2. In the navigation pane on the left, click Compute & Network > Elastic Compute Service. On the Elastic Compute Service tab, find the ECS instance that you want to assign to an application.

  3. You can assign a single ECS instance to an application, or assign multiple ECS instances to the same application in a batch operation.

    • Single assignment: To the right of the instance, click More > Assign to Application. In the Assign to Application window that appears, enter the Application and the Application Service Instance.

    • Batch assignment: Select the checkboxes for multiple instances. Above the instance list, click More > Assign to Application. In the confirmation window that appears, click OK. Then, in the Assign to Application window, enter the Application and the Application Service Instance.

      Note
      • If an application has no service instances, you can assign the ECS instance directly to the application. A new service instance is then created and associated with the latest version of the application's technology stack.

      • If the application has service instances, you must specify the service instance for the assignment.

        For more information about the relationship between applications and service instances, and how to create a service instance, see Application service instance.

  4. Click OK.

    After the assignment is complete, the application name appears in the Service Instance Binding column.

Release ECS instances

  1. Log on to the Resource Management console.

  2. In the navigation pane on the left, click Compute & Network > Elastic Compute Service. On the Elastic Compute Service tab, find the ECS instance that you want to release from an application.

  3. To the right of the instance, click More > Release from Application. A confirmation window appears to prevent accidental operations.

  4. In the confirmation window, click OK.

    After the instance is released, the application name disappears from the Service Instance Binding column.