Setting up the Amazon CLI - Amazon Personalize
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Setting up the Amazon CLI

The Amazon Command Line Interface (Amazon CLI) is a unified developer tool for managing Amazon services, including Amazon Personalize. We recommend that you install it.

  1. To install the Amazon CLI, follow the instructions in Installing the Amazon Command Line Interface in the Amazon Command Line Interface Interface User Guide.

  2. To configure the Amazon CLI and set up a profile to call the Amazon CLI, follow the instructions in Configuring the Amazon CLI in the Amazon Command Line Interface User Guide.

  3. To confirm that the Amazon CLI profile is configured properly, run the following command.

    aws configure --profile default

    If your profile has been configured correctly, you will see output similar to the following.

    AWS Access Key ID [****************52FQ]: AWS Secret Access Key [****************xgyZ]: Default region name [us-west-2]: Default output format [json]:
  4. To verify that the Amazon CLI is configured for use with Amazon Personalize, run the following commands.

    aws personalize help

    and

    aws personalize-runtime help

    and

    aws personalize-events help

    If the Amazon CLI is configured correctly, you will see a list of the supported Amazon CLI commands for Amazon Personalize, Amazon Personalize runtime, and Amazon Personalize events.

    If you set up the Amazon CLI and it doesn't recognize the commands for Amazon Personalize, update the Amazon CLI. To update the Amazon CLI, run the following command.

    pip3 install awscli --upgrade --user

    For more information, see Installing the Amazon CLI using pip.