Setting up the Amazon CLI - Amazon Polly
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

Follow these steps to download and configure the Amazon CLI to work with Amazon Polly.

To set up the Amazon Command Line Interface
  1. Download and configure the Amazon CLI. For instructions, see the following topics in the Amazon Command Line Interface User Guide:

  2. Add a named profile for the administrator user in the Amazon CLI Amazon Config file. You can use this profile when running the Amazon CLI commands. For more information about named profiles, see Named Profiles in the Amazon Command Line Interface User Guide.

    [profile adminuser] aws_access_key_id = adminuser access key ID aws_secret_access_key = adminuser secret access key region = aws-region

    For a list of available Amazon Regions and those supported by Amazon Polly, see Regions and Endpoints in the Amazon Web Services General Reference.

    Note

    If you're using a Region supported by Amazon Polly that you specified when you configured the Amazon CLI, omit the following line from the Amazon CLI code examples.

    --region aws-region
  3. Verify the setup by typing the following help command at the command prompt.

    aws help

    A list of valid Amazon commands should appear in the Amazon CLI window.