Install and configure Cloud Toolkit in PyCharm

更新时间:
复制 MD 格式

You must complete this procedure to use Cloud Toolkit to deploy applications from PyCharm. These steps also apply to the GoLand, PhpStorm, and WebStorm editors.

Prerequisites

Before you begin, ensure you have PyCharm 2018.1 or later installed.

Install Cloud Toolkit

You can download and install Cloud Toolkit from the PyCharm Marketplace. If you cannot connect to the server or the download is slow, you can also install it from the official source.

Use one of the following methods:

  • Install from the PyCharm Marketplace
    1. Choose File > Settings.
    2. In the left navigation pane of the Settings dialog box, click Plugins.
    3. On the Plugins page, enter Alibaba Cloud Toolkit in the search bar.
    4. In the search results, find Alibaba Cloud Toolkit and click Install.
      On the Marketplace tab, the panel on the right displays details about the plugin, such as its version number, number of downloads, and a feature description.
    5. In the Third-party Plugins Privacy Note dialog box, click Accept.
      This note states that third-party plugins may process your personal data. JetBrains is not responsible for the data processing activities of third-party plugin vendors.
    6. Follow the on-screen instructions in PyCharm to complete the installation.
  • Install from the Cloud Toolkit official source

    See Contact us and join the DingTalk group chat. Obtain the offline package from the group and follow these steps to install it:

    1. Choose File > Settings.
    2. In the left navigation pane of the Settings dialog box, click Plugins.
    3. In the upper-right corner of the Plugins page, click the icon, and then click Install Plugin from Disk.
      The drop-down menu also includes other plugin management options, such as Manage Plugin Repositories and HTTP Proxy Settings.
    4. In the Choose Plugin File dialog box, select the Cloud Toolkit offline package and follow the on-screen instructions in PyCharm to complete the installation.

Verify the installation

After installing the plugin, restart PyCharm. The Alibaba Cloud Toolkit icon appears on the toolbar.

An Alibaba Cloud Toolkit option is also added to the left navigation pane of the Settings dialog box, under Appearance & Behavior. Use this option to configure the plugin.

Configure account information

To deploy applications, Cloud Toolkit uses an AccessKey (which consists of an AccessKey ID and an AccessKey Secret) to call Alibaba Cloud APIs and verify your identity. You must configure your account information in Cloud Toolkit before deploying an application.

  1. Obtain an AccessKey pair.
  2. Choose File > Settings.
  3. In the left navigation pane of the Settings dialog box, choose Alibaba Cloud Toolkit > Accounts.
  4. On the Accounts page, enter your AccessKey ID and AccessKey Secret, and then click OK.
    Note If you use the AccessKey ID and AccessKey Secret of a RAM user to deploy applications to EDAS, ensure the RAM user has the required permissions. For more information, see Manage RAM users.