ECS image deployments

更新时间:
复制 MD 格式

Use this deployment type to publish an application from an Elastic Compute Service (ECS) image.

How it works

Important
  • If you deploy to an Auto Scaling (ESS) group, scaling activities are paused during deployment and resume automatically when the deployment finishes, regardless of the result.

  • When you publish, the system directly replaces the image of the ECS instances in the application group. To preserve the current image, create a custom image as a backup before you publish.

  1. Create and publish a deployment.

    Specify the application's source file location in OSS, along with the start and stop scripts.

    Create a release task, select a release mode, and publish the deployment to the target application group.

  2. Automated deployment flow.

    1. The system obtains the deployment information, including the region and ID of the ECS image.

    2. The system automatically replaces the image of the ECS instances in the application group with the specified ECS image. If the deployment uses different images for different regions, the system selects the correct image based on the region of the instance to complete the deployment.

Procedure

  1. Create an application and import your Elastic Compute Service (ECS) instances.

    1. If you do not have an ECS instance, go to the ECS console - Custom Launch page to create a Linux ECS instance.

    2. Go to the ECS console - Application management page and click Create from Existing Resources to create an application and an application group, and import the ECS instance into the application group.

  2. Create a deployment.

    1. Go to the ECS console - Application management page. On the My Applications tab, click the name of your target application.

    2. On the application details page, select the Deployment tab, and then click Create Deployment.

    3. On the Create Deployment page, set Deployment Source to ECS Image. Set the parameters and click OK to save.

      You can configure images for multiple regions. When you publish, the system automatically matches the image to the region of the application group. For more information, see How do I view the ID of a Marketplace image?
  3. Go back to the deployment list, find the deployment that you created, and click Deploy. Select the target group and click OK to start the deployment.

  4. Important

    Replacing the ECS image immediately resets the system disk of the instance. This invalidates all user passwords on the instance, including those for root and regular users.

  5. Verify the result. Go to the details page of the target instance, click Connect, and select Workbench. Log on as prompted to go to the terminal page.

FAQ

How do I view the ID of a Marketplace image?

For example, for the BT-Panel image, the image ID is at the bottom of the image details page.image