Set up the Amplify CLI

The Amplify Command Line Interface (CLI) is a unified toolchain to create AWS cloud services for your app. Make sure you have the latest version of the AWS CLI installed on your system.

Install the CLI

Because we’re installing the Amplify CLI globally, you might need to run the command above with sudo depending on your system policies.

npm install -g @aws-amplify/cli

Configure the CLI

Configure Amplify by running the following command amplify configure to set up your environment. Specify a region (you can use us-east-2, eu-west-1, us-west-2 for example). Preferably use a region that doesn’t have any resources already deployed into it.

The command amplify configure will ask you to sign into the AWS Console and once signed in, Amplify CLI will ask you to create an IAM user. Create a user with Administrator Access to your account to provision AWS resources for you. Type the access key ID and secret key from the CSV that you downloaded when you created your user account.

Normally when creating any IAM user, please apply the best practice policy of least privilege. We are using Administrator for the purposes of this lab only. See IAM and Amplify for more information.

amplify configure
Specify the AWS Region
? region:  # Your preferred region
Specify the username of the new IAM user:
? user name:  # User name for Amplify IAM user
Complete the user creation using the AWS console

Complete the user creation using the AWS console.

Make sure to note down the credentials of your new user as you might need them again once we set up your individual project.