Configure AWS CLI In 2 minutes

Varun Singh
AWS in Plain English
3 min readJul 7, 2021

--

In 2 Minutes — Configure AWS CLI

In this guide, I will walk you through the steps required to successfully configure AWS CLI in your system. Let’s get started.

Login to your AWS account using root user. Now go to IAM Service —

  1. Click on Add User under IAM -> Users.
Click on Add User

2. Add the name of the user and select Programmatic access under Access Type.

Add user Page in IAM

3. Attach Administrator Policy.

Policy Page

4. Skip adding Tags and go to the next step and click on Create User.

Create User Last Page

On clicking Create User, credentials will be listed and you can download the JSON file for future references. This file contains the IAM user credentials that we will need to set up AWS Credentials on our machine.

Now, install AWS CLI below links for your OS-specific. Follow below link to setup AWS CLI

  1. Setup AWS CLI.

Check the version installed to see everything works fine —

$ aws --version
Output: aws-cli/1.18.69

Now, let us configure AWS CLI with the credentials of the IAM user we created in this step. Run below command:

$ aws configureOutput:-
AWS Access Key ID: ****************XYXE
AWS Secret Access Key: ****************+lk2
Default region name: us-east-1
Default output format: json

And now you have successfully configured AWS CLI in your local environment. Try to run this command to verify:

$ aws s3 lsOutput: 
2021-07-06 07:19:11 bucket-1
2021-07-06 07:14:59 bucket-2

And that’s it!

More About The Author😄

I am a full-time software engineer with 4+ years of experience in Python, AWS, and many more technologies. I have started writing recently as it helps me to read more. I am looking forward to sharing technical knowledge and my life experiences with people out there.

Register Here for my Programmer Weekly newsletter where I share interesting tutorials, python libraries, and tools, etc.

Github | LinkedIn | Twitter | Facebook | Quora | Programmer Weekly

More content at plainenglish.io

--

--

50K+ views | Data Analyst turned Software Developer | Mentor | I can help you become Data Engineer | Connect with me ➡️ https://topmate.io/varunsingh