How to Install & Configure AWS CLI on Ubuntu 18.04.

AWS CLI or Amazon Web Service Command Line Interface is a command line tool for managing and administering your Amazon Web Services.

AWS CLI provides direct access to the public API (Application Programming Interface) of Amazon Web Services. Since it’s a command line tool, you can also use it to create scripts for automating your Amazon Web Services.

 

  • Update the system.

apt-get update -y

 

Fig 1

 

  • Install AWS CLI.

apt-get install aws-cli

  • Press y & Enter.

 

Fig 2

 

  • Once AWS CLI is installed then check aws version.

aws –version

 

Fig. 3

 

Configure AWS account using AWS CLI

  • Run the command.

aws configure

  • Provide AWS Access key ID & Secret  key Access.

 

Fig. 6

How to Get Access Key & Secret Key Access on AWS account

  • Go to AWS account.
  • Click on Account ID & Select My Security Credential.
  • Click on Access Keys.

Fig. 7

 

  • Click on Create New Access Key.

Fig 10

 

  • We can Download Key file or Show the access key.
  • After Downloaded Key file,copy the access key & secret key one by one.

Fig 11

 

  • Paste the Access Key Id & Secret access key on terminal.
  • Provide Default Region name & Output format.

 

Fig 12

 

  • Once aws configuration is done we can manage aws services by using aws-cli.
  • Check the configuration files by using command.

           cat ~/.aws/config

 

Fig 13

 

         cat ~/.aws/credentials

 

Fig 15

 

 

Leave a Reply