Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»AWS»How to Install AWS CLI Tools in Linux

    How to Install AWS CLI Tools in Linux

    RahulBy RahulSeptember 11, 20202 Mins ReadUpdated:May 28, 2022

    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 
      
    • Other the the package manager, you can directly install using source code. This will install the latest awscli version on any Linux platform.
      curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" 
      unzip awscliv2.zip 
      sudo ./aws/install 
      

    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.

    amazon aws awscli ec2
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Install Let’s Encrypt (Certbot) on CentOS 8
    Next Article MySQL case-sensitive Search with LIKE

    Related Posts

    Backup MySQL Databases to Amazon S3 (Shell Script)

    Updated:May 28, 20222 Mins Read

    How to Remove CloudFront Cache

    Updated:April 3, 20212 Mins Read

    Python Script to Create CloudFront Invalidations

    2 Mins Read

    How To Delete Application Versions from AWS Beanstalk

    2 Mins Read

    How to Clear Cache of Cloudfront Distribution

    Updated:August 14, 20202 Mins Read

    How to Install s3cmd in Linux and Manage S3 Buckets

    Updated:September 30, 20215 Mins Read

    2 Comments

    1. Tanmoy on April 19, 2015 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?

      Reply
    2. Yohanes Raymond on November 6, 2014 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.

      Reply

    Leave A Reply Cancel Reply

    Recent Posts
    • How To Install Docker on Ubuntu 22.04
    • How to Install Bower on Ubuntu 22.04 & 20.04
    • How to run “npm start” through Docker
    • Filesystem Hierarchy Structure (FHS) in Linux
    • How to accept user input in Python
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.