Cloning a script is equivalent to creating a new version of an existing Cloud Assistant script. You can retain all the information of the original script, or you can modify the name, description, type, content, execution path, or timeout period in the cloned script.

Procedure

  1. Log on to the ECS console and navigate to the Cloud Assistant page.
  2. In the top navigation bar, select a region.
  3. Find the Cloud Assistant script that you want to clone and click Clone in the Actions column.
  4. In the Clone Script dialog box, complete the following optional steps.
    1. Select Script Type.
      • Linux instances: shell.
      • Windows instances: bat or PowerShell.
    2. Edit or paste new Script.
      For more information about shell script examples, see View instance configurations.
    3. Determine whether to turn on Use Parameters.
      If you turn on Use Parameters, you can specify custom parameters in the {{key}} format in the Script field.
    4. Enter a new Script Name.
    5. Enter a new Script Description.
    6. Define the Execution Path of the script.
      • The default execution path of shell scripts is the /home directory of the root user.
      • The default execution path of bat and PowerShell scripts is the directory where the Cloud Assistant client is installed, such as C:\ProgramData\aliyun\assist\$(version).
    7. Set the allowed longest timeout period for Timeout. Default value: 60 seconds.
  5. After you confirm all the modifications, click OK.