LoginSignup
3
3

More than 5 years have passed since last update.

auto scalingのセットアップ

Posted at
cd /usr/local/src
sudo wget http://ec2-downloads.s3.amazonaws.com/AutoScaling-2011-01-01.zip
sudo unzip AutoScaling-2011-01-01.zip 
sudo mv AutoScaling-1.0.61.6 /usr/local/share/aws/
cp /usr/local/share/aws/AutoScaling-1.0.61.6/credential-file-path.template ~/.ssh/aws-credential-file-path

.bash_profileに次を追記

export AWS_AUTO_SCALING_HOME=/usr/local/share/aws/AutoScaling-1.0.61.6
export PATH=$PATH:$AWS_AUTO_SCALING_HOME/bin
export AWS_CREDENTIAL_FILE=/home/shida/.ssh/aws-credential-file-path

launch-config, scaling-groupの作成

as-create-launch-config example-lc --image-id ami-xxxxxxxx --instance-type t1.micro --group wellknown,default
as-create-auto-scaling-group example-sg --launch-configuration example-lc --availability-zones ap-northeast-1a --min-size 1 --max-size 1 --load-balancers example-elb

っていうか管理画面から出来るようになってるやん orz

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3