All Products
Search
Document Center

Serverless App Engine:Use Alibaba Cloud Toolkit to implement interconnection between on-premises and cloud applications in IntelliJ IDEA

Last Updated:May 18, 2025

You can use Alibaba Cloud Toolkit to implement interconnection between on-premises applications and cloud applications that are deployed on Serverless App Engine (SAE). This helps you efficiently develop applications. This topic describes how to use Alibaba Cloud Toolkit to implement interconnection between on-premises and cloud applications.

Prerequisites

  • The version of IntelliJ IDEA is 2018.3 or later.

  • The version of Alibaba Cloud Toolkit is 2020.9.1 or later. Alibaba Cloud Toolkit 2020.9.1 or later allows you to configure the interconnection between on-premises and cloud applications for on-premises projects at a specified configuration granularity. The configuration granularity can be project or module. If you want to configure the interconnection between on-premises and cloud applications for on-premises projects at a specified configuration granularity, you must upgrade Alibaba Cloud Toolkit to 2020.9.1 or later.

    Note

    If the version of your Alibaba Cloud Toolkit is 2020.9.1 but the configuration granularity option is unavailable, uninstall and then reinstall Alibaba Cloud Toolkit.

  • An Elastic Compute Service (ECS) instance that can be accessed over Secure Shell (SSH) is created in the virtual private cloud (VPC) where your application resides to establish channels between on-premises and cloud applications. For more information, see Create and manage an ECS instance in the console (express version).

    Important
    • The ECS instance and the application must reside in the same VPC.

    • The SSH channel requires password logon. Key pair logon is not supported.

    • If a proxy is configured for your operating system, the system may fail to establish a channel between on-premises and cloud applications. You must disable the proxy and then try again.

Limits

Java applications in the on-premises and cloud environments can be interconnected. The following table describes the limits on Java applications based on the microservices framework.

Microservices framework

Limits

Spring Cloud

If you use a Nacos instance to manage application configurations, make sure that Spring Cloud Edgware or later is used.

Dubbo

  • You must use Dubbo 2.7.2 or later.

  • You must use the following component versions for service registration and discovery:

    • dubbo-nacos-registry 2.7.2 or later

    • edas-dubbo-extension 2.0.2 or later

HSF

None

Step 1: Install Alibaba Cloud Toolkit

  1. Start IntelliJ IDEA.

  2. Install the latest version of Alibaba Cloud Toolkit in IntelliJ IDEA.

    • macOS: In the left-side navigation pane of the Preferences page, click Plugins. On the right side of the page, enter Alibaba Cloud Toolkit in the search box and click the search icon. Then, click Install.在IntelliJ IDEA中安装插件—mac

    • Windows: In the left-side navigation pane of the Settings page, click Plugins. On the right side of the page, enter Alibaba Cloud Toolkit in the search box and click the search icon. Then, click Install.在IntelliJ IDEA中安装插件—windows

  3. After Alibaba Cloud Toolkit is installed in IntelliJ IDEA, restart IntelliJ IDEA. The Alibaba Cloud Toolkit icon act图标 appears in the toolbar.

Step 2: Configure an Alibaba Cloud Toolkit account

After Alibaba Cloud Toolkit is installed, use your AccessKey ID and AccessKey secret to configure an Alibaba Cloud Toolkit account.

  1. Start IntelliJ IDEA.

  2. In the top navigation bar of IntelliJ IDEA, choose Tools > Alibaba Cloud > Preferences.

  3. In the left-side navigation pane, choose Alibaba Cloud Toolkit > Accounts.

  4. 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 Resource Access Management (RAM) user, make sure that the RAM user is authorized to deploy applications. For more information, see Grant permissions to a RAM user.Config-Idea-Cloud-Toolkit-Account.png

    • 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 with your Alibaba Cloud account, you are navigated to the AccessKey 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: Configure interconnection between on-premises and cloud applications

  1. In the top navigation bar, choose Tools > Alibaba Cloud > Preferences.

  2. In the Settings dialog box, choose Alibaba Cloud Toolkit > Microservice.

  3. On the Microservice page, select Interconnection Between On-premises and Cloud Applications, configure the parameters, and then click Apply.

    The following table describes the parameters.

    Parameter

    Description

    Product

    Select Serverless App Engine (SAE).

    Environment for Interconnection Between On-premises and Cloud Applications

    Specify the region and the namespace where the cloud applications that you want to call are deployed.

    Spring Cloud Service Port

    If you use a Spring Cloud application, you must enter the service port number of your application in the Spring Cloud Service Port field. You do not need to configure this parameter for other types of applications.

    Jump Server Settings

    • Jump Server IP: the public IP address of the ECS instance.

    • Account: the username that is used to establish channels between on-premises and cloud applications.

    • Password: the password that is used to establish channels between on-premises and cloud applications.

    Note

    You can enter the username and password of the ECS instance that is used to establish the channels between on-premises and cloud applications. Alternatively, you can enter a new username and password, and then click Initialize Account... to configure a proxy.

    Initialize Account...

    • If you enter the root username and password of the ECS instance, the root account is used. After you configure the settings, a message indicating that the configurations are added appears.

    • If you use a new account or a non-root account, you must obtain the root permission to configure the proxy. In the Add SSH Rule dialog box, configure the Password parameter and click Add.

      Important
      • The username and password of the ECS instance are used only to create a proxy.

      • We recommend that you use a new account or a non-root account. You can share the account with other team members who want to connect on-premises and cloud applications. This prevents data leakage from the root account information.

Step 4: Start the on-premises application for connecting to the cloud application

Start the on-premises application. If the application is interconnected with a cloud application, the following message appears.

An etrans process is started after the application starts:

启动etrans的进程

Note

If you encounter issues during the interconnection between on-premises and cloud applications, you can click Quick Diagnostics to troubleshoot the issues such as abnormal startup of the etrans channel and service disconnected.

References