After you develop, debug, and test your application in your on-premises environment, you can install Alibaba Cloud Toolkit in IntelliJ IDEA to deploy your application to Enterprise Distributed Application Service (EDAS). This topic describes how to install Alibaba Cloud Toolkit in IntelliJ IDEA and deploy an application to a Container Service for Kubernetes (ACK) cluster.
Prerequisites
- Java Development Kit (JDK) 1.8 or later is downloaded and installed.
- IntelliJ IDEA 2018.3 or later is downloaded and installed.
Note The official server of the JetBrains plug-in is deployed outside China. If you cannot download IntelliJ IDEA due to a slow network response, join the DingTalk group provided at the end of this topic. You can obtain the offline installation package for IntelliJ IDEA from Alibaba Cloud Toolkit technical support.
- An application is created and deployed to an ACK cluster. For more information, see Use an image to deploy an application in a.
Step 1: Install Alibaba Cloud Toolkit
Step 2: Configure an Alibaba Cloud Toolkit account
After Alibaba Cloud Toolkit is installed, use your AccessKey ID and AccessKey secret to configure your Alibaba Cloud Toolkit account.
- Start IntelliJ IDEA.
- In the top navigation bar of IntelliJ IDEA, choose .
- In the left-side navigation pane, choose Alibaba Cloud Toolkit > Accounts.
- On the Accounts page, set the Access Key ID and Access Key Secret parameters and click OK.
- If you use the AccessKey ID and the AccessKey secret of a RAM user, make sure that the RAM user is authorized to deploy applications.
- If your EDAS service is deployed on Apsara Stack Enterprise, you must configure an endpoint to use Alibaba Cloud Toolkit.
- If you already have an Alibaba Cloud account, click Get existing AK/SK on the Accounts page. The logon page of Alibaba Cloud appears. After you log on to the system by using your Alibaba Cloud account, you are navigated to the Security Management page. On this page, obtain the AccessKey ID and the AccessKey secret of the account.
- If you do not have an Alibaba Cloud account, click Sign up on the Accounts page. On the page that appears, create an Alibaba Cloud account. Then, obtain the AccessKey ID and the AccessKey secret of the account by using the preceding method.
Step 3: Deploy your application to an ACK cluster
Deploy a multi-module project
Most Maven projects are multi-module projects. A multi-module project is a project where the modules of the project can be separately developed and some of the modules may use the features of other modules.
For example, your project is a Maven multi-module project, and you want to deploy a submodule of the project. Make sure that the last Maven job in the Before launch section on the EDAS Deployment Configurations page is the build job for the submodule. For more information about how to manage Maven build jobs, see Manage Maven build jobs.
The following example shows the submodules of the CarShop project:
carshop
├── itemcenter-api
├── itemcenter
├── detail
- Add a Maven job to run the
mvn clean install
command in the parent project CarShop. - Add a Maven job to run the
mvn clean package
command in the itemcenter submodule.
Manage Maven build jobs
In Alibaba Cloud Toolkit installed in IntelliJ IDEA, you can deploy Maven build jobs. In the Deploy to EDAS dialog box, you can create, delete, modify, or move Maven build jobs in the Before launch section.

In the Select Maven Goal dialog box, click the folder icon next to the Working directory field and select all the available modules for the current project. Then, enter the build command in the Command line field.

FAQ
- Why am I unable to find my application in the application list?
In most cases, this issue occurs if your application is deployed by using a RAM user that is not synchronized to EDAS or is not authorized to deploy the application. As a result, the application is not displayed in the Application drop-down list. To resolve the issue, you can grant the required permissions to the RAM user in the Resource Access Management (RAM) console or the EDAS console and synchronize the RAM user to EDAS.
- Grant permissions to the RAM user in the RAM console
You can use this authorization method to grant the RAM user the permissions to access all the EDAS resources.
- In the left-side navigation pane of the RAM console, choose .
- On the Users page, find the RAM user and click Add Permissions in the Actions column.
- In the Select Policy section of the Add Permissions panel, search for the AliyunEDASFullAccess policy and click it to add it to the Selected section. Then, click OK.
- In the Add Permissions panel, check the summary of the authorization information and click Complete.
- Use your Alibaba Cloud account to log on to the EDAS Console. In the left-side navigation pane, choose System Management > RAM User. In the upper-right corner of the RAM User page, click Synchronize RAM User.
- Grant permissions to the RAM user in the EDAS console
You can use this authorization method to grant the RAM user the fine-grained permissions to access EDAS resources.
- Use your Alibaba Cloud account to log on to the EDAS Console.
- In the left-side navigation pane, choose Create Role. . In the upper-right corner of the Roles page, click
- In the Create Role dialog box, enter a role name in the Role field. In the Optional Permissions section, choose . Then, click Add to add the role for application deployment to the Selected Permissions section and click OK.
- In the left-side navigation pane, choose RAM User page, click Synchronize RAM User. . In the upper-right corner of the
- Find the RAM user that you want to grant permissions, and click Manage Roles in the Original Authorization for EDAS column. In the Manage Roles dialog box, search for the role to be added in the Unselected section. Then, select the role and add it to the Selected section, and click OK.
- Find the RAM user that you want to grant permissions and click Applications Authorized in the Original Authorization for EDAS column. In the Applications Authorized dialog box, search for the application that you want to deploy in the Unselected section. Then, select the application and add it to the Selected section, and click OK.
- Grant permissions to the RAM user in the RAM console
- How do I configure an endpoint?
Note If your EDAS service is deployed on Apsara Stack Enterprise, you must configure an endpoint in Alibaba Cloud Toolkit. To obtain an endpoint, contact EDAS technical support.
- In the left-side navigation pane of the Preference (Filtered) dialog box, choose Appearance & Behavior > Endpoint.
- On the Endpoint page, configure an endpoint and click Apply and Close.