Installing AWS command-line tools

From Notes_Wiki
Revision as of 05:21, 18 April 2022 by Saurabh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Home > Amazon web services > Installing AWS command-line tools

The below steps are for installing updated AWS CLI version 2 on CentOS

  1. Ensure that following packages are installed
    dnf install less glibc groff-base unzip curl
  2. Download latest AWS CLI version using:
    curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
  3. Unzip and install awscli
    unzip awscliv2.zip
    ./aws/install #As root user
  4. Check installed version
    aws --version
  5. Configure installed awscli with AWS access key ID, secret key, region, etc. using:
    aws configure
  6. Test the configuration with some command such as:
    aws s3 ls
    aws lightsail get-instances | grep -C1 arn | grep -i name


Refer:


Home > Amazon web services > Installing AWS command-line tools