SlideShare a Scribd company logo
How To Install and Configure AWS CLI on RHEL 7
i | P a g e
Table of Contents
Overview.......................................................................................................................................................1
Applies To......................................................................................................................................................1
Pre-Requisites ...............................................................................................................................................1
Installation ....................................................................................................................................................1
Check Packages.........................................................................................................................................1
Download AWS CLI Bundler......................................................................................................................1
Unzip bundle.............................................................................................................................................1
Install.........................................................................................................................................................2
Test Installation Status..............................................................................................................................2
Configuring AWS CLI .....................................................................................................................................2
AWS Portal – Security Credentials............................................................................................................2
Portal – Access Key ...................................................................................................................................3
Portal – Access Key ...................................................................................................................................3
Configure CLI.............................................................................................................................................4
CLI Configuration Files ..............................................................................................................................4
Run Sample CLI..........................................................................................................................................4
How To Install and Configure AWS CLI on RHEL 7
1 | P a g e
Overview
Amazon Web Services Command Line Interface (CLI) is a unified tool to manage your AWS services. You
can control multiple AWS services from the command line and automate them through scripts.
In this guide we will navigate through the steps of installation and configuration of AWS CLI interface.
Applies To
Tested on RHEL 7, CentOS 7.
Pre-Requisites
 Python 2 version 2.6.5+ or Python 3 version 3.3+
Installation
Installation of Amazon CLI is a simple procedure.
Check Packages
rpm -qa | grep python
Download AWS CLI Bundler
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
Unzip bundle
unzip awscli-bundle.zip
How To Install and Configure AWS CLI on RHEL 7
2 | P a g e
Install
./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
Parameter Purpose
-i Installation directory
-b Binary Location for AWS CLI
Test Installation Status
/usr/local/bin/aws --version or aws help
Configuring AWS CLI
First step before you configure the AWS CLI, you need to get the “AWS Access Key ID” and “AWS Secret
Access Key” from the AWS Management console from the root user “Security Credentials” menu option
and click on “Create New Access Key”.
AWS Access Key = Your Account Access Key
AWS Secret Access Key = Your Account Secret Access Key
AWS Portal – Security Credentials
After login into the AWS portal, click on “Security Credentials” option.
How To Install and Configure AWS CLI on RHEL 7
3 | P a g e
Portal – Access Key
Click on option “Access Keys (Access Key ID and Secret Access Key)” and click on “Create New Access
Key” button, to generate a new key.
Note: you can also download the access key file.
Portal – Access Key
Click on option “Access Keys (Access Key ID and Secret Access Key)”.
How To Install and Configure AWS CLI on RHEL 7
4 | P a g e
Configure CLI
Once you have generate the access key ID and secret access key, you may configure cli, to configure the
cli run the command;
aws configure
CLI Configuration Files
After configuring the AWS CLI, the configuration files are stored in the user’s home directory under “.aws”
folder. config file will contain the options set and credentials file will user credentials.
cd ~/; pwd; ll
Run Sample CLI
To demonstrate the cli command execution, we will check for availability zones in text output, run the
below command;
aws ec2 describe-availability-zones

More Related Content

PDF
Connect Amazon EC2 Linux Instance
PDF
Installation CentOS 6.3
PDF
How To Install and Configure VSFTPD on RHEL 7 or CentOS 7
PDF
How To Install and Configure AWS CLI on RHEL 7
PDF
How To Configure Apache VirtualHost on RHEL 7 on AWS
PDF
How To Install and Configure Apache SSL on CentOS 7
PDF
How To Create RDS Database for WordPress in AWS on RHEL 7 or CentOS 7
PDF
How To Install and Configure AWS CLI for Windows
Connect Amazon EC2 Linux Instance
Installation CentOS 6.3
How To Install and Configure VSFTPD on RHEL 7 or CentOS 7
How To Install and Configure AWS CLI on RHEL 7
How To Configure Apache VirtualHost on RHEL 7 on AWS
How To Install and Configure Apache SSL on CentOS 7
How To Create RDS Database for WordPress in AWS on RHEL 7 or CentOS 7
How To Install and Configure AWS CLI for Windows

What's hot (20)

PDF
How To Configure FirewallD on RHEL 7 or CentOS 7
PDF
How To Configure Amazon EC2 Security Groups
PDF
How To Install OpenFire in CentOS 7
PDF
How To Install and Configure Log Rotation on RHEL 7 or CentOS 7
PDF
How to Change Hostname in CentOS 7 or RHEL 7
PDF
How To Connect Amazon AWS EC2 with Key Pair – Linux
PDF
How To Install and Configure Splunk on RHEL 7 in AWS
PDF
How to Upgrade Openfire on CentOS 7
PDF
How to Install MariaDB Server or MySQL Server on CentOS 7
PDF
SystemD Usage Guide
PDF
How To Configure Amazon EC2 Load Balancer
PDF
How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance
PDF
How to install and configure firewall on ubuntu os
PDF
How to Install and Configure Cacti on Linux
PDF
Install and Configure WordPress in AWS on RHEL 7 or CentOS 7
PDF
How To Find Package Installation Date on RHEL 7
PDF
How to Configure OpenFiler for NFS Share
PDF
How To Install and Configure SUDO on RHEL 7
PDF
Configure Run Levels RHEL 7 or CentOS 7
PDF
How to installation and configure apache2
How To Configure FirewallD on RHEL 7 or CentOS 7
How To Configure Amazon EC2 Security Groups
How To Install OpenFire in CentOS 7
How To Install and Configure Log Rotation on RHEL 7 or CentOS 7
How to Change Hostname in CentOS 7 or RHEL 7
How To Connect Amazon AWS EC2 with Key Pair – Linux
How To Install and Configure Splunk on RHEL 7 in AWS
How to Upgrade Openfire on CentOS 7
How to Install MariaDB Server or MySQL Server on CentOS 7
SystemD Usage Guide
How To Configure Amazon EC2 Load Balancer
How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance
How to install and configure firewall on ubuntu os
How to Install and Configure Cacti on Linux
Install and Configure WordPress in AWS on RHEL 7 or CentOS 7
How To Find Package Installation Date on RHEL 7
How to Configure OpenFiler for NFS Share
How To Install and Configure SUDO on RHEL 7
Configure Run Levels RHEL 7 or CentOS 7
How to installation and configure apache2
Ad

Viewers also liked (16)

PDF
How to Install Configure and Use sysstat utils on RHEL 7
PDF
How To Install and Use ABRT CLI on RHEL 7
PDF
How To Check file exists and Delete PowerShell
PDF
How To View Current Execution Policy PowerShell
PDF
How To Reset root Password on CentOS 7
PDF
DNF Failed To Open Cache
PDF
File Space Usage Information and EMail Report - Shell Script
PDF
Bash Script Disk Space Utilization Report and EMail
PDF
How To Audit Server Login and Shutdown or Reboot Activity
PDF
How To Manage Yum Packages Interactive Shell
PDF
Shell Script to Extract IP Address, MAC Address Information
PDF
How to Troubleshoot SELinux Audit2Allow unable to open (null)
PDF
Bash Script - How To Monitor Application Error Logs and Send Notification
PDF
How To Manage Yum Packages - Group Packages
PDF
How to Manage journalctl Logging System on RHEL 7
PDF
How To Manage Services on RHEL 7 or CentOS 7
How to Install Configure and Use sysstat utils on RHEL 7
How To Install and Use ABRT CLI on RHEL 7
How To Check file exists and Delete PowerShell
How To View Current Execution Policy PowerShell
How To Reset root Password on CentOS 7
DNF Failed To Open Cache
File Space Usage Information and EMail Report - Shell Script
Bash Script Disk Space Utilization Report and EMail
How To Audit Server Login and Shutdown or Reboot Activity
How To Manage Yum Packages Interactive Shell
Shell Script to Extract IP Address, MAC Address Information
How to Troubleshoot SELinux Audit2Allow unable to open (null)
Bash Script - How To Monitor Application Error Logs and Send Notification
How To Manage Yum Packages - Group Packages
How to Manage journalctl Logging System on RHEL 7
How To Manage Services on RHEL 7 or CentOS 7
Ad

Similar to How to Install and Configure AWS CLI on RHEL 7 (20)

PDF
Awsgsg wah-linux
PDF
Awsgsg wah-linux
PDF
How To Create EC2 instance Linux Server
PDF
AWS Certified Solutions Architect Associate Exam Guide 1st Edition 2024_KIRAN...
PPTX
AWS Cyber Security Best Practices
PDF
Aws cli
PDF
Aws cli
PDF
Openstack Cloud Administrator Guide
PDF
Sun_AmazonEC2_GettingStartedGuide
PDF
AWS essentials EC2
PDF
Awsgsg wah
PDF
Awsgsg wah
PDF
How To Connect to Active Directory User Validation
PDF
How To Connect To Active Directory PowerShell
PDF
Security as Code: DevSecOps Patterns with AWS Bk Sarthak Das
PDF
Actor Model Import Connector for Microsoft Active Directory
PDF
Amazon web services
PDF
Awsgsg intro
PDF
Awsgsg wah-linux
Awsgsg wah-linux
How To Create EC2 instance Linux Server
AWS Certified Solutions Architect Associate Exam Guide 1st Edition 2024_KIRAN...
AWS Cyber Security Best Practices
Aws cli
Aws cli
Openstack Cloud Administrator Guide
Sun_AmazonEC2_GettingStartedGuide
AWS essentials EC2
Awsgsg wah
Awsgsg wah
How To Connect to Active Directory User Validation
How To Connect To Active Directory PowerShell
Security as Code: DevSecOps Patterns with AWS Bk Sarthak Das
Actor Model Import Connector for Microsoft Active Directory
Amazon web services
Awsgsg intro

More from VCP Muthukrishna (20)

PDF
How to Fix Duplicate Packages in YUM on CentOS 7
PDF
How To Install and Configure GNome on CentOS 7
PDF
How To List Files on Remote Server - PowerShell
PDF
How To List Files and Display In HTML Format
PDF
How To Check and Delete a File via PowerShell
PDF
Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...
PDF
How To Setup SSH Keys on CentOS 7
PDF
How To Install and Configure Open SSH Server on Ubuntu
PDF
Windows PowerShell Basics - How To List PSDrive Info
PDF
How To List Nginx Modules Installed / Complied on CentOS 7
PDF
Windows PowerShell Basics – How To Create powershell for loop
PDF
How To Construct IF and Else Conditional Statements
PDF
How To Create PowerShell Function Mandatory Parameter and Optional Parameter
PDF
How To Create Power Shell Function Mandatory Parameter Value
PDF
How To Create PowerShell Function
PDF
How To Disable IE Enhanced Security Windows PowerShell
PDF
How To Check IE Enhanced Security Is Enabled Windows PowerShell
PDF
How To Configure Nginx Load Balancer on CentOS 7
PDF
Nginx bind() to 0.0.0.0:9080 failed
PDF
How To Install and Configure Screen on CentOS 7
How to Fix Duplicate Packages in YUM on CentOS 7
How To Install and Configure GNome on CentOS 7
How To List Files on Remote Server - PowerShell
How To List Files and Display In HTML Format
How To Check and Delete a File via PowerShell
Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...
How To Setup SSH Keys on CentOS 7
How To Install and Configure Open SSH Server on Ubuntu
Windows PowerShell Basics - How To List PSDrive Info
How To List Nginx Modules Installed / Complied on CentOS 7
Windows PowerShell Basics – How To Create powershell for loop
How To Construct IF and Else Conditional Statements
How To Create PowerShell Function Mandatory Parameter and Optional Parameter
How To Create Power Shell Function Mandatory Parameter Value
How To Create PowerShell Function
How To Disable IE Enhanced Security Windows PowerShell
How To Check IE Enhanced Security Is Enabled Windows PowerShell
How To Configure Nginx Load Balancer on CentOS 7
Nginx bind() to 0.0.0.0:9080 failed
How To Install and Configure Screen on CentOS 7

Recently uploaded (20)

PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Approach and Philosophy of On baking technology
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
KodekX | Application Modernization Development
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Cloud computing and distributed systems.
PDF
Encapsulation theory and applications.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Big Data Technologies - Introduction.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
Understanding_Digital_Forensics_Presentation.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Approach and Philosophy of On baking technology
Dropbox Q2 2025 Financial Results & Investor Presentation
KodekX | Application Modernization Development
Programs and apps: productivity, graphics, security and other tools
The Rise and Fall of 3GPP – Time for a Sabbatical?
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Spectral efficient network and resource selection model in 5G networks
Cloud computing and distributed systems.
Encapsulation theory and applications.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Unlocking AI with Model Context Protocol (MCP)
Machine learning based COVID-19 study performance prediction
Big Data Technologies - Introduction.pptx

How to Install and Configure AWS CLI on RHEL 7

  • 1. How To Install and Configure AWS CLI on RHEL 7 i | P a g e Table of Contents Overview.......................................................................................................................................................1 Applies To......................................................................................................................................................1 Pre-Requisites ...............................................................................................................................................1 Installation ....................................................................................................................................................1 Check Packages.........................................................................................................................................1 Download AWS CLI Bundler......................................................................................................................1 Unzip bundle.............................................................................................................................................1 Install.........................................................................................................................................................2 Test Installation Status..............................................................................................................................2 Configuring AWS CLI .....................................................................................................................................2 AWS Portal – Security Credentials............................................................................................................2 Portal – Access Key ...................................................................................................................................3 Portal – Access Key ...................................................................................................................................3 Configure CLI.............................................................................................................................................4 CLI Configuration Files ..............................................................................................................................4 Run Sample CLI..........................................................................................................................................4
  • 2. How To Install and Configure AWS CLI on RHEL 7 1 | P a g e Overview Amazon Web Services Command Line Interface (CLI) is a unified tool to manage your AWS services. You can control multiple AWS services from the command line and automate them through scripts. In this guide we will navigate through the steps of installation and configuration of AWS CLI interface. Applies To Tested on RHEL 7, CentOS 7. Pre-Requisites  Python 2 version 2.6.5+ or Python 3 version 3.3+ Installation Installation of Amazon CLI is a simple procedure. Check Packages rpm -qa | grep python Download AWS CLI Bundler curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip" Unzip bundle unzip awscli-bundle.zip
  • 3. How To Install and Configure AWS CLI on RHEL 7 2 | P a g e Install ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws Parameter Purpose -i Installation directory -b Binary Location for AWS CLI Test Installation Status /usr/local/bin/aws --version or aws help Configuring AWS CLI First step before you configure the AWS CLI, you need to get the “AWS Access Key ID” and “AWS Secret Access Key” from the AWS Management console from the root user “Security Credentials” menu option and click on “Create New Access Key”. AWS Access Key = Your Account Access Key AWS Secret Access Key = Your Account Secret Access Key AWS Portal – Security Credentials After login into the AWS portal, click on “Security Credentials” option.
  • 4. How To Install and Configure AWS CLI on RHEL 7 3 | P a g e Portal – Access Key Click on option “Access Keys (Access Key ID and Secret Access Key)” and click on “Create New Access Key” button, to generate a new key. Note: you can also download the access key file. Portal – Access Key Click on option “Access Keys (Access Key ID and Secret Access Key)”.
  • 5. How To Install and Configure AWS CLI on RHEL 7 4 | P a g e Configure CLI Once you have generate the access key ID and secret access key, you may configure cli, to configure the cli run the command; aws configure CLI Configuration Files After configuring the AWS CLI, the configuration files are stored in the user’s home directory under “.aws” folder. config file will contain the options set and credentials file will user credentials. cd ~/; pwd; ll Run Sample CLI To demonstrate the cli command execution, we will check for availability zones in text output, run the below command; aws ec2 describe-availability-zones