On my previous tutorial, I have shown how to install Amazon AWS CLI on Ubuntu 16.04. And now, I want to show you how to install AWS CLI on Debian 9 Stretch. AWS CLI is a powerful tool to manage your Amazon services. We can do many things with this command line tool. With this tool, we can easily upload, download and sync local files with the Amazon S3 storage.
Steps to install AWS CLI on Debian 9
Note: This installation is done using normal user, not root user.
Step 1. Install pip on Debian
pip is a command line tool to install python packages. We will need pip to install AWS CLI. On Terminal, execute the following command to install pip.
apt install python-pip
Now check if pip is correctly installed.
dhani@debian:~$ pip --version pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)
Step 2. Install AWS CLI
pip install awscli --upgrade --user
In few moments, the installation should be completed. Now we can start using aws command.
Step 3. Configure aws
After install, we need to configure aws. Execute this command to configure. Please note that you will need access key ID and secret key in order to configure aws. You can get this access key and secret key from AWS Management Console.
aws configure
Output:
AWS Access Key ID [None]: AKIAJMIQ4YMZFOOXGTYU AWS Secret Access Key [None]: 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 Default region name [None]: Default output format [None]: json
To get help, please visit the official user guide for AWS CLI.
Leave a Reply