1

I just installed AWS CLI on a few servers with Ubuntu 14 on. The last server I installed it on, cannot access the AWS CLI from the terminal and run commands.

This does not work:

aws --version

You need to do this:

/home/user/.local/lib/aws/bin/aws --version

How can I make aws --version work in the same manner it does on all the other servers?

1
  • 1
    It's probably your PATH variable, check it on your other servers and see if it matches. If not add /home/user/.local/lib/aws/bin/ to it.
    – coteyr
    Jul 20, 2015 at 16:39

1 Answer 1

2

PATH Variables needed to be added.

cd ~

vi .profile

Append: :/home/user/.local/lib/aws/bin/ Behind: PATH=":$HOME/bin

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH:/home/user/.local/lib/aws/bin/"
fi

aws --version

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .