- Log into the server and get on to the root with command: sudo -s (user should be in sudoers list)
- Download and run the installation script from the pip website:
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
sudo python get-pip.py
Install the AWS CLI Using pip:
sudo pip install awscli
- Check for pip/python installation status by :
$ pip --version
$ python --version
- If Python 2.7 or later is not installed, install Python 3.4 or above with your distribution’s package manager. The command and package name varies:
sudo yum install python34
- Open a command prompt or shell and run the following command to verify that Python installed correctly:
- After installing with pip, you may need to add the aws executable to your OS’s PATH environment variable or change its mode to make it executable
If you see an error message like -bash: AWS: command not found when you try to use the AWS CLI, add the location of the executable to your PATH environment variable
ls -a ~. .. .bash_logout .bash_profile .bashrc Desktop Documents Downloads
- Add an export command to profile script :
- Load the profile into your current session
- Run chmod +x to make the file executable:
$ chmod +x ~/.local/bin
After following the above steps, your system is ready to execute all AWS CLI commands, and now you can access Amazon Web Services like S3 buckets.
For, Uploading data on S3 buckets, refer our upcoming articles Soon!