After you install and configure Alibaba Cloud Toolkit in IntelliJ IDEA, you can deploy on-premises applications to Elastic Compute Service (ECS), Enterprise Distributed Application Service (EDAS), Container Service for Kubernetes (ACK), and servers in Alibaba Cloud. You can also use the features that are provided by Alibaba Cloud Toolkit, such as Arthas diagnostics, file or folder uploading, and the built-in Target Management (TM) Terminal.

Prerequisites

Install Alibaba Cloud Toolkit

You can search for Alibaba Cloud Toolkit in the JetBrains plug-in marketplace and download and install it. If the access to the plug-in marketplace is slow or the download fails, you can use the offline package to install Alibaba Cloud Toolkit.

  • Download and install Alibaba Cloud Toolkit from the plug-in marketplace.
    1. In the top navigation bar of IntelliJ IDEA, choose File > Settings.
    2. In the Settings dialog box, click Plugins in the left-side navigation pane.
    3. In the Plugins section, click Marketplace.
    4. In the search box, enter Alibaba Cloud Toolkit.
    5. In the Search Results section, Alibaba Cloud Toolkit is displayed. Click Install.
      search toolkit
    6. After you download and install Alibaba Cloud Toolkit, click Restart IDE.
  • Install Alibaba Cloud Toolkit by using the offline package.
    1. In the top navigation bar of IntelliJ IDEA, choose File > Settings.
    2. In the Settings dialog box, click Plugins in the left-side navigation pane.
    3. In the Plugins section, click and then click Install Plugin from Disk. install from disk
    4. In the Choose Plugin File dialog box, select the offline installation package of Alibaba Cloud Toolkit. You do not need to decompress the package. Perform subsequent steps as prompted on the installation page in IntelliJ IDEA.

Verify the result

After IntelliJ IDEA is restarted, choose File > Settings in the top navigation bar. In the Settings dialog box, you can see that Alibaba Cloud Toolkit appears in the left-side navigation pane. This indicates that the installation is successful.

Configure account information

When you use Alibaba Cloud Toolkit to deploy applications to Alibaba Cloud, you must call API operations of Alibaba Cloud services. When you call the API operations, you must use an AccessKey pair that consists of an AccessKey ID and an AccessKey secret for authentication in the cloud. Therefore, before you deploy applications, configure account information in Alibaba Cloud Toolkit. Perform the following steps:

  1. Obtain the AccessKey pair.
  2. In the top navigation bar of IntelliJ IDEA, choose File > Settings. In the Settings dialog box, choose Alibaba Cloud Toolkit > Accounts in the left-side navigation pane.
  3. On the Accounts page, enter the AccessKey ID and AccessKey secret that you obtain and then click OK.
    Note If you use the AccessKey ID and AccessKey secret of a RAM user to deploy applications to EDAS, make sure that the RAM user has permissions to deploy the applications. For more information, see RAM users in EDAS documentation.