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
Download AWS CLI (Command Line Interface) installer from Windows installer or MAC installer
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
Open your AWS Management Console, navigate to IAM, then Users
Click create user, and tick on 'Provide user access to the AWS Management Console - optional'
Under User Type, select ' I want to create an IAM user' and click next
Under Permissions options, select 'Attach policies directly', search for 'AdministratorAccess', tick, and click next then click create user
Click Download .csv file and keep it if you would want to sign into the management console with that lAM user
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
Click create access key and click download the .csv file
Step 3: Configuring the AWS CLI
Open your local computer CMD(Command Prompt) as an administrator
Copy and paste the following command in your cmd
aws configure
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!!!