Recently, I saw that Ali Cloud released a plug-in named Alibaba Cloud Toolkit, which can help developers efficiently develop and deploy applications suitable for running on the Cloud. It hit my heart instantly. This is super great for individual developers, and finally there is no need to manually upload applications to the server with SCP/FTP. Even start the command is self-written, bang!

PS: Individual developer projects are few and small. If you use Jenkins and other tools, it will be more troublesome, rather than throwing directly by hand.

What is Alibaba Cloud Toolkit

Alibaba Cloud Toolkit (hereinafter referred to as Cloud Toolkit) is a plug-in provided by Alibaba Cloud for developers on IDE platform, which is used to help developers efficiently develop and deploy applications suitable for running on Cloud.

After you have completed the development, debugging, and testing of your application locally, you can use the Cloud Toolkit plug-in installed in IED (such as Eclipse or IntelliJ) to connect to the Cloud deployment environment in a graphical configuration and deploy your application to the Cloud as quickly as possible.

Note: Currently Cloud Toolkit only supports Eclipse, Intellij and other development environment development, please continue to pay attention to Cloud Tookit dynamics.

There is a simple version of the official documentation, partners can also refer to the following link:

https://help.aliyun.com/product/29966.html
Copy the code

Install and configure the Cloud Toolkit using IDEA

The author manually installed the tool on IDEA and finished the test. He was very satisfied with the tool. The following is the installation and configuration process, mainly including the following steps:

  1. Install the Alibaba Cloud Toolkit plug-in on IDEA
  2. Restarting the IDEA Application
  3. Configure Accout information in the Cloud Toolkit plug-in
  4. Obtain user AccessKey related information (AccessKey ID, AccessKey Secret) in Ali Cloud
  5. Configure the server and command information for publishing to the ECS
  6. Tested and released successfully

The main process is the above 6 steps. Below, we will configure it step by step. Figure above:

If the plug-in download speed is slow, wait for a while. The author also failed to download the plug-in once during the test. After downloading, you need to restart IDEA application to take effect.

First of all, the Account of Alibaba Cloud Toolkit needs to be configured, as shown in the following figure:

The AccessKey in the figure above needs to be configured in the console of Ali Cloud. If it is a new user, an AccessKey needs to be created manually, as shown below:

Once the Account has been created and configured, you can start to configure the corresponding project information to be published to the ECS. See the following links for the official documentation:

https://help.aliyun.com/document_detail/98762.html
Copy the code

If your Account configuration is correct, the Account will automatically display the corresponding ECS server, when publishing, you need to manually select a server, be sure to select oh!

For Command writing, please refer to the official documentation (click on the blue font: Learn Sample) :

https://yq.aliyun.com/articles/665693
Copy the code

After the configuration is successful, you can click Run to Run the program, which will automatically compile and upload to Ali Cloud server. Publish to the address is the path in the Deploy Location shown in the figure above. If you need Maven to execute before publishing, don’t forget to configure the command of Maven shown in the figure above. The commands in the middle are used to start, stop, and restart applications after they are successfully uploaded to the server.

Here is an example of a successful publication:

The following information is displayed on the server:

conclusion

The above is the installation, configuration and use case of IDEA plug-in Alibaba Cloud Toolkit. If you have other problems, you can follow the link below to join the official only designated support group of Alibaba Cloud Toolkit and submit your requirements & bugs.

https://yq.aliyun.com/articles/656292
Copy the code

This afternoon, I have replaced my related projects with this tool. Ha ha ha, it is very good to use. I hope this article can help my friends.

To this article is over, pay attention to the public account to view more push!!