HUAWEI CLOUD Classroom Empowerment—TooKit Helps Developers Go to the Cloud

For experienced programmers, IDE is essential. It is like a sword in the hands of a swordsman. IDE helps programmers to program faster and smoother. At the same time, plug-ins are various buffs on this sword, giving the sword Yes, provide a better experience of upgrading and fighting monsters.

What is Huawei Cloud Toolkit

The Chinese name of Huawei Cloud Toolkit is Huawei Cloud Developer Plug-in, which is a series of plug-in collections based on the existing capabilities of Huawei Cloud. Simply put, it brings the capabilities of Huawei Cloud to the desktop of each developer, allowing developers to use plug-ins in the IDE. The ability to connect to HUAWEI CLOUD. The HUAWEI CLOUD developer series plug-ins are free and support multiple current IDE platforms: including IntelliJ series, VSCode, and Huawei's self-developed CodeArts IDE.

HUAWEI CLOUD Toolkit First Experience Sharing

Huawei Cloud Toolkit supports multiple platforms. Let's take the IntelliJ platform IDEA as an example to experience Toolkit's ability to deploy plug-ins (one-click deployment to CCI and ECS).

Basic operation process:

Deployment plug-in installation --> HUAWEI CLOUD account login (please install the base plug-in in advance) --> deployment plug-in experience .

What do developers usually do when they want to deploy to the cloud after completing the development of local software packages locally? In the formal process, the iterative release of software versions must go through the CI/CD pipeline, such as the open source tool Jenkins or commercial CI/CD products; in the development process of individuals or relatively less strict specifications, after the code development and testing are completed locally, The software package can be uploaded to the server through the scp command or related tools.

The deployment plug-in of Huawei Cloud Toolkit (Huawei Cloud Deploy) provides a simple and fast channel for users to quickly deploy to servers or containers on the IDE side. This is good news for students who want to experience the complete development process or develop independently. Open IDEA In the plug-in market, search for "Huawei Cloud Deploy" (deployment plug-in) and "Huawei Cloud Toolkit Platform" (Huawei Cloud base plug-in, providing single sign-on capability), one-click installation and restart the IDE, you can have this rapid deployment capability ( ECS and CCI resources need to be purchased in advance).

Let's take ECS deployment as an example:

  1. Log in to the HUAWEI CLOUD account with ECS resources, open the main panel on the left of the plug-in: click the "Huawei Cloud Toolkit" tool button in the tool box on the left side of IDEA, click "Huawei Cloud Deploy" in the main panel of the plug-in, and select "Deploy to ECS" .

  1. Set deployment parameters in the popup panel.

Deployment parameter description:

  • Create New Configuration: Create a deployment configuration task, and save the configuration parameters locally with the Save button.
  • Using Existing Configuration: Use localized saved deployment parameters (not selected here).
  • Name: Customize the name of the deployment task for subsequent reuse (you can define a name at will).
  • File: The file to be transferred to ECS (you can choose a jar package, binary package, etc.).
  • Target ECS: ECS resources of the target Region, you can select the instance you want to deploy (make sure there are ECS resources under the current login account).
  • Command before: Commands executed before deployment (such as cd commands, environment configuration commands, etc.).
  • Target directory: Enter the target deployment path on ECS.
  • Command after: The command to execute after deployment.

After configuring the parameters, the existing ECS ​​instance will be displayed. Click the setting icon in the ECS instance table, and then pull down the authentication method to switch the authentication method. Here we select the Password method. After completing the configuration, click run to complete the deployment operation.

   

 

After the deployment is successful, it pops up: "Success to deploy for ECS!", log in to the remote ECS, and you can see that we have successfully deployed the local application to the server.

The overall deployment and configuration process only takes less than 1 minute, and the configuration parameters can be persisted locally, and can be directly reused next time. Is it very convenient?

learn more

To learn and use more capabilities of Huawei Cloud Toolkit, please refer to: ToolKit special training

Guess you like

Origin blog.csdn.net/hwxiaozhi/article/details/132172725