After you install and configure Alibaba Cloud Toolkit in Visual Studio Code, you can quickly deploy local applications to ECS instances or other remote servers.
Prerequisites
You have installed Visual Studio Code.
Install Cloud Toolkit
You can install the extension from the Marketplace or by using an offline package.
-
Install from the Marketplace
-
Go to the Alibaba Cloud Toolkit page in the Marketplace.
-
Click Install, and then in the pop-up window, click Open Visual Studio Code.
On the Marketplace page, the green Install button is below the Alibaba Cloud Toolkit extension title.
-
On the extension page that opens in Visual Studio Code, click Install.
Visual Studio Code opens the Alibaba Cloud Toolkit extension page. Click the green Install button to install the extension.
-
-
Install from an offline package
Join our DingTalk group to get the VSIX offline package, and then follow these steps to install it. For more information, see Contact us.
-
From the Visual Studio Code menu bar, select .
After you expand the File menu, hover over Preferences to open a submenu. The keyboard shortcut for the Extensions option is Ctrl+Shift+X.
-
In the Extensions sidebar, click the ... (More Actions) button in the header, and then select Install from VSIX....
The drop-down menu contains extension management options such as Show Installed Extensions and Show Outdated Extensions. Install from VSIX... is at the bottom of the menu.
-
In the dialog box, select the VSIX file and click Install.
-
Verify the installation
After a successful installation, the Alibaba Cloud Toolkit icon appears in the Visual Studio Code sidebar.
The Alibaba Cloud Toolkit icon appears at the bottom of the sidebar. When you click the icon, a panel opens that contains the ALIBABA CLOUD VIEW section, which includes Host View, Ecs View, and FC View, as well as the RUN CONFIGURATIONS section.
Configure account credentials
Alibaba Cloud Toolkit calls Alibaba Cloud APIs to deploy applications to the cloud. These calls require an AccessKey for authentication, which consists of an AccessKey ID and an AccessKey Secret. You must configure these credentials in Alibaba Cloud Toolkit before deploying an application. Follow these steps:
-
In the Visual Studio Code sidebar, click the Alibaba Cloud Toolkit icon, and then click the Settings icon in the ALIBABA CLOUD VIEW section.
The gear-shaped icon is on the right side of the section header.
-
On the Settings View page, select Accounts.
The navigation pane on the left also includes the SSH Profile, Host Tag, and Import & Export options. The account configuration form on the right contains a Default Profile drop-down list and the Add Profile and Remove Profile buttons.
-
On the Accounts tab, enter a Profile Name, your AccessKey ID, and your AccessKey Secret.
-
Click OK.
Next steps
After you install and configure Alibaba Cloud Toolkit, you can use it to deploy applications. For instructions, see Deploy applications to a remote server by using Visual Studio Code.