I am running micro instance, now need to horizontally scale. I mean I am experimenting with a micro instance. I followed the instructions which is given in this video, but when I run as-cmd
I get an error msg which says command not found
.
I have installed java run time and have also set the environment variables.
I am fighting to set up the environmental variables in an EC2 ubuntu 10.04 instance.
Here’s how I install the Auto Scaling command line tools:
sudo mkdir -p /usr/local/aws
wget http://ec2-downloads.s3.amazonaws.com/AutoScaling-2011-01-01.zip
unzip AutoScaling-*.zip
sudo rsync -av --no-o --no-g AutoScaling-*/lib/ /usr/local/aws/lib/
sudo rsync -av --no-o --no-g AutoScaling-*/bin/ /usr/local/aws/bin/export EC2_PRIVATE_KEY=$(echo $HOME/.ec2/pk-*.pem)
export EC2_CERT=$(echo $HOME/.ec2/cert-*.pem)
export JAVA_HOME=/usr
export EC2_HOME=/usr/local/aws
export AWS_AUTO_SCALING_HOME=/usr/local/aws
export PATH=$EC2_HOME/bin:$PATH
I drop the private key and cert into $HOME/.ec2/
The environment variables can also be placed in $HOME/.bashrc
Check more discussion of this question.