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

If you plan to use JupyterLab or the DataBrew API, make sure to install the Amazon Command Line Interface (Amazon CLI). You don't need it to use the DataBrew console or perform the steps in the Getting Started exercises.

To set up the Amazon CLI
  1. Download and configure the Amazon CLI by using the steps found following:

  2. Verify the setup by entering the following DataBrew command at the command prompt.

    aws databrew help

    If this statement returns the error "aws: error: argument command: Invalid choice" followed by a long list of services, uninstall the Amazon CLI, and then reinstall. This action doesn't overwrite your existing configuration.

Amazon CLI commands use the default Amazon Region from your configuration, unless you set it with a parameter or a profile. You can add the --region parameter to each command.

If you prefer, you can add a named profile in ~/.aws/config or %UserProfile%/.aws/config (on Microsoft Windows). Named profiles can also preserve other settings, as shown in the following example.

[profile databrew] aws_access_key_id = ACCESS-KEY-ID-OF-IAM-USER aws_secret_access_key = SECRET-ACCESS-KEY-ID-OF-IAM-USER region = us-east-1 output = text