• Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us
TecAdmin
Menu
  • Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us

How to Install and Use AWS CLI Tools on Linux

Written by Rahul, Updated on September 28, 2020

The AWS Command Line Interface (CLI) is the unified tools for managing AWS services. Using this tool, you can manage multiple AWS service via command line and automate them using scripts.

You can install and configure AWS command line utility on your Linux system. This tutorial will help you with the installation of AWS command line utility and configure it.

Installing the AWS CLI

AWS CLI tools package are available under the default repositories. You can use the package manager for installing AWS CLI on Linux systems.

Choose one of the below command to install:

  • Ubuntu and Debian Systems
    sudo apt install awscli 
    
  • Fedora and CentOS 8
    sudo dnf install awscli 
    
  • CentOS 7 and Scientific Linux
    sudo yum install awscli 
    

Generate Access Keys

Generate the Access Key an Secrete Access Key to your AWS Account

  • Head to AWS Security Credentials.
  • Expand option Access keys (access key ID and secret access key)
  • Click the button Create New Access Key
  • Copy the access key ID and secret access key and save to safe place

Configure AWS CLI

Next, configure the cli tools to connect with your AWS account. Just execute below command to setup environment.

aws configure 

This will prompt for for AWS Access Key ID and Secret Access Key created in above step.

AWS Access Key ID [None]: ABCDEFXXXXXXXXDKKDFJ
AWS Secret Access Key [None]: 3SDFskjf8KDfjksdf9sdfjsdkfjkKSDKSJFKD
Default region name [None]: us-east-1
Default output format [None]:

That’s it. Your system is configured with the AWS CLI tools.

Working with AWS CLI Tools

AWS CLI tools provide your option to manage multiple service via the command line. To get the help about uses type:

aws help 

Here is the few example commands to work with aws cli:

  • List all the instances
    aws ec2 describe-instances
    
  • List instances from other zone
    aws ec2 describe-instances --region=us-west-1
    
  • List S3 buckets
    aws s3 list
    

Conclusion

In this tutorial, you have learned to install AWS ClI tools on Unix/Linux systems. Also with some basic examples for uses.

Share it!
Share on Facebook
Share on Twitter
Share on LinkedIn
Share on Reddit
Share on Tumblr
Share on Whatsapp
Rahul
Rahul
Connect on Facebook Connect on Twitter

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

2 Comments

  1. Avatar Tanmoy Reply
    April 19, 2015 at 9:49 am

    I have multiple AWS account with me. Is there any way to use any of them from the same system. If yes then how do I configure all of them in a single system?

  2. Avatar Yohanes Raymond Reply
    November 6, 2014 at 4:21 am

    Hi,

    Looks like amazon is depreciating SOAP Requests after December 2014.
    http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-soap-api.html

    You should use Query API for Amazon EC2, or the SDKs for AWS regarding their website.

Leave a Reply Cancel reply

Popular Posts

  • How to Install Python 3.9 on CentOS/RHEL 7 & Fedora 32/31 0
  • How To Install VNC Server on Ubuntu 20.04 1
  • How To Install NVM on macOS with Homebrew 0
  • (Solved) apt-add-repository command not found – Ubuntu & Debian 0
  • How to Install .NET Core on Debian 10 0
© 2013-2020 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy