All Products
Search
Document Center

Pulumi:Install Pulumi

Last Updated:Jul 03, 2026

Procedure

  1. Go to the Pulumi official website and follow the instructions to install the Pulumi CLI automatically or manually. Alibaba Cloud Shell comes with Pulumi pre-installed. If you use Cloud Shell, skip to step 4.

  2. Add Pulumi to your PATH.

    The installer for Windows and macOS automatically adds Pulumi to your PATH, so you can skip this step. On Linux, run the following command to add Pulumi to your PATH:

    export PATH=$PATH:$HOME/.pulumi/bin
  3. Verify the installation.

    pulumi version
  4. You can use Pulumi with your Alibaba Cloud root account. However, for enhanced security and permission control, we recommend that you create a dedicated RAM user and grant it permissions.

    1. Log on to the RAM console.

    2. Create a RAM user named Pulumi and generate an AccessKey pair for it. For detailed steps, see Create a RAM user.

    3. Grant permissions to the RAM user.

  5. Configure your Alibaba Cloud credentials.

    Go to the Alibaba Cloud console User Management page to find your AccessKey ID and AccessKey secret. Set the following environment variables:

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

  7. Create a Pulumi access token.

    Log on to the Pulumi console. Click your profile picture and select Settings. On the Settings page, click Access Tokens, and then click New Access Token. After the token is created, copy it immediately. It is displayed only once.

  8. Set the Pulumi access token environment variable.

    
    export PULUMI_ACCESS_TOKEN=pul-37****

    You have successfully installed and configured Pulumi. You can now explore other topics to start managing your cloud resources with Pulumi.