Updated on 2023-08-09 GMT+08:00

Solution Overview

Scenarios

This solution uses a FunctionGraph function to change or reinstall the OS of multiple Elastic Cloud Servers (ECSs).

Architecture

You can change or reinstall the OS of multiple ECSs on Huawei Cloud. The following figure shows the solution architecture.

Figure 1 Solution architecture

This solution will:

  • Create a FunctionGraph function to call the ECS API used to reinstall or change the OS.
  • Create an agency in Identity and Access Management (IAM) to delegate FunctionGraph to access ECS in the relevant region.

Advantages

This solution has the following advantages:

  • Serverless

    The serverless architecture frees you from underlying resource O&M and availability and scalability issues.

  • Easy to deploy

    You can reinstall or change the OS of multiple ECSs with just a few clicks.

  • Customizable

    This solution is open-source and free for commercial use. You can also make custom development according to the practical requirements.

Constraints

  • Before deploying this solution, register a HUAWEI ID, enable Huawei Cloud services, and complete real-name authentication. Ensure that your account is not in arrears or frozen.
  • For details about the notes, constraints, and prerequisites for reinstalling the OS, see Reinstalling the OS.
  • For details about the notes, constraints, prerequisites, and billing rules for changing the OS, see Changing the OS.