Installing AWS CLI package on Linux CentOS7 server

  1. Log into the server and get on to the root with command:  sudo -s (user should be in sudoers list)
  2. Download and run the installation script from the pip website:
    $ curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" 
  3. $ sudo python get-pip.py

    pip_install 

    Install the AWS CLI Using pip:

    $ sudo pip install awscli
  4. Check for pip/python installation status by :
    $ pip --version
    $ python --version
  5. 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
  6. Open a command prompt or shell and run the following command to verify that Python installed correctly:
    python3 --version
  7. 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
    ~/.local/bin

    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

    Bash – .bash_profile.profile, or .bash_login.

  8. Add an export command to profile script :

    export PATH=~/.local/bin:$PATH

  9. Load the profile into your current session

    source ~/.bash_profile

  10. 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!

 



Categories: Linux

Tags: , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: