How to install AWS CLI on Linux
3 min readJan 22, 2025
To install the AWS CLI on Linux, you’ll need to follow a series of steps. This process will enable you to interact with AWS services from your command line interface. Here’s a guide to help you through the installation:
- Update Package List
- Open a terminal on your Ubuntu system.
- Run the following command to update your package list:
sudo apt update
- Install Prerequisites
- Ensure you have the necessary tools installed:
sudo apt install -y unzip curl
- Download AWS CLI
- Use curl to download the AWS CLI installation file:
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
- Extract the Installation Files
- Unzip the downloaded file:
unzip awscliv2.zip
- Run the Installation
- Install the AWS CLI:
sudo ./aws/install
- Verify the Installation
- Confirm that the AWS CLI is installed correctly:
aws --version
- This should display the version of AWS CLI installed on your system.
- Configure AWS CLI
- Set up your AWS credentials:
aws configure
- You’ll be prompted to enter your AWS Access Key ID, Secret Access Key, default region, and output format.
- Clean Up
- Remove the installation files:
rm awscliv2.zip
rm -rf aws
#aws #awscli #awsconsole #awsconfig #awscommunity #awstips
By completing these steps, you will have successfully installed the AWS CLI on your Ubuntu system. You can now use AWS CLI commands to interact with various AWS services directly from your terminal. Remember to keep your AWS CLI updated and manage your credentials securely.