1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Install & Configure the AWS Amplify CLI

    nader dabitnader dabit
    reactReact
    awsAWS
    javascriptJavaScript

    In this lesson we’ll show how to install the AWS Amplify CLI & then configure it with an IAM user so we can begin creating new Amplify projects.

    Code

    Code

    Become a Member to view code

    You must be a Member to view code

    Access all courses and lessons, track your progress, gain confidence and expertise.

    Become a Member
    and unlock code for this lesson
    Transcript

    Transcript

    Instructor: 00:01 To get started, we'll install the CLI by running npm install -g @aws-amplify/cli. Now that the CLI has been installed, we'll run amplify-configure to configure the CLI with the user from our AWS account. This should open up the AWS console. Once you're logged into the console, jump back to the command-line.

    00:33 We're next prompted to specify an AWS region. For me, that's us-east-1. Now we can give a username for the new user that we're about to create. I'll give mine the username of amplify-egghead-cli-user. This should open up the IAM dashboard in our AWS account.

    00:53 This IAM user has some preconfigured settings that we can accept by clicking Next Permissions, Next Review, and Create User. Once the user's been created, we're given an access key ID and a secret access key.

    01:16 Copy the access key ID to your clipboard, jump back to the command-line and paste it into the prompt. Do the same with the secret access key.

    01:29 Here we can set a profile name. I'll give the profile name a name of amplify-egghead-cli-user. Now the CLI has been configured and we're ready to begin initializing new AWS Amplify projects.

    Discuss

    Discuss