A Guide: Logging into AWS CLI on your local computer

AWS CLI

The AWS Command Line Interface (CLI) is a unified tool that provides a consistent interface for managing AWS services from the command line. It allows you to control multiple AWS services directly from your local computer's terminal or command prompt. You can perform tasks such as creating and managing instances, uploading data to S3 buckets, pushing your docker images to ECR, configuring security groups, and more.

Step 1: Downloading, installing and configuring AWS CLI

  1. Download AWS CLI (Command Line Interface) installer from Windows installer or MAC installer

  2. Run your downloaded file and follow the on-screen instructions to complete the installation.

    • To confirm the installation, open the Start menu, search for cmd to open a command prompt window, and at the command prompt use the aws --version command.

Step 2: Creating an IAM USER

  1. Open your AWS Management Console, navigate to IAM, then Users

  2. Click create user, and tick on 'Provide user access to the AWS Management Console - optional'

  3. Under User Type, select ' I want to create an IAM user' and click next

  4. Under Permissions options, select 'Attach policies directly', search for 'AdministratorAccess', tick, and click next then click create user

  5. Click Download .csv file and keep it if you would want to sign into the management console with that lAM user

  6. Now navigate back to Users, and open the user you have just created, navigate to security credentials and click create access keys, (choose Command line interface) and click next

  7. Click create access key and click download the .csv file

Step 3: Configuring the AWS CLI

  1. Open your local computer CMD(Command Prompt) as an administrator

  2. Copy and paste the following command in your cmd

      aws configure
    
  3. From the .csv file you have downloaded, copy the Access key ID and paste into the cli and click enter, then copy the Secret access key and enter into the cli

    • YOU ARE GOOD TO GO!!!