All Products
Search
Document Center

Pulumi:Install Pulumi

Last Updated:Sep 25, 2023

Procedure

  1. Go to the Pulumi official website and follow the instructions to install Pulumi. Alibaba CloudShell is pre-installed with Pulumi for your convenience. If you use Cloud Shell, start from step 4.

  2. Add Pulumi to your path.

    For Windows and macOS systems, the PATH environment variable is automatically set by using the automatic installation commands. In this case, skip this step. For Linux systems, run the following command to add Pulumi to your path:

    export PATH=$PATH:$HOME/.pulumi/bin
  3. Verify whether Pulumi is installed.

    pulumi version
  4. You can use Pulumi by using your Alibaba Cloud account. However, we recommend that you create and authorize a RAM user to improve the flexibility and security of permission management.

    1. Log on to the RAM console.

    2. Log on to the RAM console.

    3. Create a RAM user named Pulumi and create an AccessKey pair for the RAM user.

    4. Authorize the RAM user.

  5. Configure Alibaba Cloud credentials.

    Query the AccessKey ID and AccessKey secret from the User Management page in the Alibaba Cloud console. Set the relevant environment variables as follows:

    export ALICLOUD_ACCESS_KEY=xxxxxx
    export ALICLOUD_SECRET_KEY=xxxxxx
  6. Go to the Pulumi official website to sign up for a Pulumi account.

  7. Create a Pulumi access token.

    Log on to the Pulumi console. Click the profile picture and choose Settings from the shortcut menu. Go to the Settings tab as shown in the following figure. In the left-side navigation pane, click Access Tokens. Click New Access Token to create an access token.tokenAfter the token is created, copy the token generated on the page. The access token is displayed only once.

  8. Set the PULUMI_ACCESS_TOKEN environment variable.

    export PULUMI_ACCESS_TOKEN=pul-37****

    You have completed the installation and initial setup of Pulumi. For more information about how to use Pulumi to manage cloud resources, see other topics.