Alibaba Cloud Toolkit for Eclipse (hereinafter referred to as Cloud Toolkit) is a free IDE plugin that helps users use Alibaba Cloud more efficiently.
You can register or use an existing Alibaba Cloud account to download Cloud Toolkit for free.After it is downloaded, you can install it to Eclipse.
After developing, debugging, and testing an application locally, you can use Cloud Toolkit to easily deploy the application to Alibaba Cloud.Currently, you can use Cloud Toolkit to deploy applications to ECS instances, EDAS, and Container Service for Kubernetes.
This topic describes how to install Cloud Toolkit in Eclipse and use it to quickly deploy an application to EDAS.
- You have downloaded and installed JDK 1.8 or later.
- You have downloaded and installed Eclipse IDE, 4.5.0 (code: Mars) or later for Java EE developers.
In the top navigation bar, choose Help > Install New Software.
In the Available Software dialog box that is displayed, set Work with to the URL
http://toolkit.aliyun.com/eclipse/of Cloud Toolkit for Eclipse.
In the Name column, select Alibaba Cloud Toolkit Core and Alibaba Cloud Toolkit Deployment Tools. In the Details area, clear Connect all update sites during install to find required software.Then, click Next.
Perform the subsequent installation steps as instructed on the Install page of Eclipse.
Note: In the installation process, a dialog box indicating no digital signature may appear. In such case, select Install anyway.
After installing Cloud Toolkit, restart Eclipse. The Alibaba Cloud Toolkit icon is displayed in the toolbar.
To configure a Cloud Toolkit account, you must have an Access Key ID and an Access Key Secret.
Click the drop-down arrow of the Alibaba Cloud Toolkit icon in the toolbar. In the drop-down list, click Alibaba Cloud preference… .
In the Preference (Filtered) dialog box, click Accounts in the left-side navigation pane.
On the Accounts page, set Access Key ID and Access Key Secret, and click OK.
If you have an Alibaba Cloud account, on the Accounts page, click Manage existing Account to go to the logon page of Alibaba Cloud.Log on to the Alibaba Cloud console. Go to the Security Management page to retrieve your Access Key ID and Access Key Secret.
If you do not have an Alibaba Cloud account, on the Accounts page, click Sign up to go to the registration page of Alibaba Cloud. Register an Alibaba Cloud account on this page.Then, retrieve your Access Key ID and Access Key Secret using the preceding method.
Currently, you can use Cloud Toolkit to deploy applications to EDAS with WAR or JAR packages.
In the Package Explorer left-side navigation pane of Eclipse, right-click the name of your application and choose Alibaba Cloud > Deploy to EDAS… from the shortcut menu.
In the Deploy to EDAS dialog box, select Region, Namespace, Application, and Group as needed, and then click Deploy.
- Region: indicates the region where your application is located.
- Namespace: indicates the namespace where your application is located.
- Application: indicates the name of your application.
- Group: indicates the group to which your application belongs.
Note: If you have not created an application in EDAS, click Create application on EDAS console… in the upper-right corner of the dialog box to go to the EDAS console. Then, create an application.For more information about how to create applications, see Deploy Java applications in ECS clusters.
When the deployment process starts, the deployment logs are printed on the Eclipse Console tab page.You can check the deployment result based on the logs.
If you want to stop the Cloud Toolkit when it is running, terminate the EDAS-deploy process on the Progress tab page.