Configuring AWS CLI (Command Line Interface) with IAM User Account

Configuring AWS CLI (Command Line Interface) with IAM User Account

Terminal Commands

Screenshot 2022-07-07 at 15.12.43.png Terminal screenshot (Green border = user values from IAM credential)

  • which aws -> Location of AWS folder
  • aws --version or aws --v -> AWS version installed
  • aws configure Configure AWS with IAM security credentials

Generating the IAM credentials

Screenshot 2022-07-07 at 14.59.35.png

  • Open AWS console, login and go to IAM Management Console.
  • Click on Add Users

Screenshot 2022-07-07 at 15.00.34.png

  • Input User name and select your AWS credential type

Screenshot 2022-07-07 at 15.01.33.png

  • Attach policies

Screenshot 2022-07-07 at 15.01.59.png

  • Add tags

Screenshot 2022-07-07 at 15.02.26.png

  • Review your details

Screenshot 2022-07-07 at 15.03.08.png

  • Copy your credentials

Screenshot 2022-07-07 at 15.19.36.png

  • Let the system know that your sensitive information is residing in the .aws folder
  • aws iam list-users -> Display IAM details in Terminal