You can execute a public template provided by Operation Orchestration Service (OOS) to obtain information about the Linux kernel version of an Elastic Compute Service (ECS) instance and add a kernel version tag to the instance.
- Log on to the OOS console.
- In the left-side navigation pane, click Public Templates.
- In the top navigation bar, select a region.Note By default, OOS deployed in a region can be used to manage resources only in that region. For example, OOS deployed in the China (Hangzhou) region can be used to manage ECS instances only in this region. However, OOS provides a method to manage resources deployed in other regions. If you want to call API operations in other regions, specify the region ID in the ACS::ExecuteAPI action. We recommend that you do not use this method. Select the region where the ECS instance to which you want to add a tag resides.
- On the Public Templates page, find ACS-ECS-BulkyTagInstanceByLinuxKernelVersion and click Create Execution.
- On the Create page, perform the following operations:
- In the Basic Information step, keep the default values and click Next: Parameter Settings.Note The default value of Execution Mode is Automatic. This indicates that all tasks in the template will automatically run.
- In the Parameter Settings step, set targets to Select Instances Manually. Then, select the ECS instance to which you want to add a tag.Note
- You can select multiple ECS instances at a time.
- You can select only the ECS instances that run the Linux operating system. Otherwise, the execution fails.
- Set tagKey to KernelVersion.
- Click Next: OK.
- Confirm the settings and click Create.
- In the Basic Information step, keep the default values and click Next: Parameter Settings.
You can log on to the ECS console to check whether a Linux kernel version tag is added to the ECS instance.