I have installed the AWS Command line tools and have also set the Env Variables, but why I type mon-cmd I am getting this error, I am not able to figure it out,kindly help me.
/usr/local/aws/bin/mon-cmd: line 12: /home/ubuntu/usr/local/aws/bin/service: No such file or directory
/usr/local/aws/bin/mon-cmd: line 12: exec: /home/ubuntu/usr/local/aws/bin/service: cannot execute: No such file or directory
It looks like the mon-cmd is looking for the binaries path in /home/ubuntu instead of /.
Can you show how you set the EC2_HOME environmental variable? You an run something like
env |grep EC2
.I have mine set like:
I suspect you have it set similarly, but you probably want it set to / (i.e.,
export EC2_HOME=/
) or something similar.You may need to add /usr/local/aws/bin to your PATH, additionally.
It's not EC2_PATH. Do this:
Then, with your private key and certificate:
Change X and Y for your respectives.