All Products
Search
Document Center

Use Eclipse to quickly deploy applications

Last Updated: Feb 02, 2019

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.

Prerequisites

Install Cloud Toolkit

  1. Start Eclipse.

  2. In the top navigation bar, choose Help > Install New Software.

  3. 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.

  4. 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.

     Configure parameters to install Cloud Toolkit

  5. 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.

  6. After installing Cloud Toolkit, restart Eclipse. The Alibaba Cloud Toolkit icon is displayed in the toolbar.

     Configure parameters to install Cloud Toolkit

Configure a Cloud Toolkit account

To configure a Cloud Toolkit account, you must have an Access Key ID and an Access Key Secret.

  1. Start Eclipse.

  2. Click the drop-down arrow of the Alibaba Cloud Toolkit icon in the toolbar. In the drop-down list, click Alibaba Cloud preference… .

  3. In the Preference (Filtered) dialog box, click Accounts in the left-side navigation pane.

  4. On the Accounts page, set Access Key ID and Access Key Secret, and click OK.

     Configure parameters to install Cloud Toolkit

    • 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.

Deploy applications to EDAS

Currently, you can use Cloud Toolkit to deploy applications to EDAS with WAR or JAR packages.

  1. 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.

  2. In the Deploy to EDAS dialog box, select Region, Namespace, Application, and Group as needed, and then click Deploy.

    Parameter description:

    • 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.

  3. 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.

Stop Cloud Toolkit

If you want to stop the Cloud Toolkit when it is running, terminate the EDAS-deploy process on the Progress tab page.

 Stop application deployment