Set up the Amazon CLI - Application Auto Scaling
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).

Set up the Amazon CLI

The Amazon Command Line Interface (Amazon CLI) is a unified developer tool for managing Amazon services, including Application Auto Scaling. Follow the steps to download and configure the Amazon CLI.

To set up the Amazon CLI
  1. Download, install, and configure version 1 or 2 of the Amazon CLI. The same Application Auto Scaling functionality is available in version 1 and 2. For instructions, see the following topics in the Amazon Command Line Interface User Guide:

    Amazon CLI version 1

    Amazon CLI version 2


    For CLI access, you need an access key ID and a secret access key. Use temporary credentials instead of long-term access keys when possible. Temporary credentials include an access key ID, a secret access key, and a security token that indicates when the credentials expire. To increase the security of your Amazon Web Services account, we strongly recommend that you do not use the access credentials associated with your Amazon Web Services account root user. For more information, see Programmatic access in the Amazon Web Services General Reference and Security best practices in IAM in the IAM User Guide.

  2. To confirm that the Amazon CLI profile is configured correctly, run the following command in a command window.

    aws configure

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

    AWS Access Key ID [****************52FQ]: AWS Secret Access Key [****************xgyZ]: Default region name [us-east-1]: Default output format [json]:
  3. Run the following command to verify that the Application Auto Scaling commands for the Amazon CLI are installed.

    aws application-autoscaling help