Before we begin, make sure that your system is up to date by running the following commands in the terminal:
sudo apt-get update
sudo apt-get upgrade
Now let’s move on to the installation process.
Step 1: Install pip
The AWS CLI requires Python and pip to be installed on your system. If you don’t have pip installed, you can install it using the following command:
sudo apt-get install python3-pip
Step 2: Install the AWS CLI
Once you have pip installed, you can install the AWS CLI using the following command:
pip3 install awscli --upgrade --user
This command will download and install the latest version of the AWS CLI.
Step 3: Verify the installation
To verify that the installation was successful, you can run the following command:
aws --version
This command will display the version number of the AWS CLI installed on your system.
Step 4: Configure the AWS CLI
After the installation is complete, you need to configure the AWS CLI to access your AWS account. To do this, run the following command:
aws configure
This command will prompt you to enter your AWS access key ID, secret access key, default region name, and default output format. You can find your access key ID and secret access key in the AWS Management Console.
Once you have entered this information, the AWS CLI is ready to use.
That’s it! You have successfully installed the AWS CLI on Linux Mint and configured it to access your AWS account. You can now use the CLI to manage your AWS resources from the command line.