This topic describes how to update custom images by using Operation Orchestration Service (OOS). OOS provides public templates to update images automatically. To create an immediate or scheduled O&M task, you only need to select a source image and specify required parameters such as the Cloud Assistant command in a public template. The O&M task is then automatically executed based on the definitions in the template.
Prerequisites
You must have registered an Alibaba Cloud account before you follow the instructions provided in the tutorial. If not, create a new Alibaba Cloud account first.
Background information
- Check whether the name of the new custom image already exists and make sure that the name complies with the naming conventions.
- Create and launch a temporary ECS instance based on parameters such as the instance type, source image ID, and security group ID that you have configured.
- Check whether the Cloud Assistant client is installed on the temporary ECS instance. If not, install the Cloud Assistant client.
- Run scripts by using Cloud Assistant to update the system environment of the instance.
Note OOS calls Cloud Assistant API operations to run shell, bat, or PowerShell scripts to update the system environments of ECS instances. For more information, see Overview.
- Stop the temporary ECS instance.
- Create a custom image from the temporary ECS instance.
- Release the temporary ECS instance.
Procedure
- Log on to the OOS console.
- Optional:If you are using OOS for the first time, click Enable Now to activate OOS.
- In the left-side navigation pane, click Public Templates.
- In the top navigation bar, select a region.
- In the ACS-ECS-UpdateImage section, click Create Execution.
- On the Create page, perform the following operations:
- In the left-side navigation pane, click Executions to view the created O&M task.
Result
