This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ as-put-scaling-policy TEST_SCALE_POLICY --auto-scaling-group TEST_SCALE_INSTANCE_GROUP --adjustment=2 --type ChangeInCapacity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ as-update-auto-scaling-group TEST_SCALE_INSTANCE_GROUP --launch-configuration ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ as-describe-auto-scaling-groups |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ as-create-auto-scaling-group TEST_SCALE_INSTANCE_GROUP --launch-configuration TEST_SCALE_INSTANCE --min-size 0 --max-size 20 --load-balancers TestScale --availability-zones ap-northeast-1a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
as-delete-launch-config TEST_SCALE_INSTANCE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ as-describe-launch-configs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ as-create-launch-config TEST_SCALE_INSTANCE --image-id ami-******* --key hogehoge --group default --instance-type t1.micro --region ap-northeast-1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Auto Scaling Command Line Tool Path | |
$ export AWS_AUTO_SCALING_HOME=$HOME/AutoScaling | |
$ export AWS_CREDENTIAL_FILE=$HOME/AutoScaling/credential-file-path | |
# CloudWatch Command Line Tool Path | |
$ export AWS_CLOUDWATCH_HOME=$HOME/CloudWatch | |
# ec2 keys | |
$ export EC2_PRIVATE_KEY=$HOME/ec2-keys/pk-****.pem | |
$ export EC2_CERT=$HOME/ec2-keys/cert-****.pem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd AutoScaling | |
$ mv credential-file-path.template credential-file-path | |
$ vi credential-file-path | |
# AutoScaling/credential-file-path | |
AWSAccessKeyId=[Access Key ID] | |
AWSSecretKey=[Secret Access Key] | |
$ cd ../CloudWatch | |
$ mv credential-file-path.template credential-file-path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ wget http://ec2-downloads.s3.amazonaws.com/CloudWatch-2010-08-01.zip | |
$ wget http://ec2-downloads.s3.amazonaws.com/AutoScaling-2011-01-01.zip | |
$ unzip CloudWatch-2010-08-01.zip | |
$ unzip AutoScaling-2011-01-01.zip | |
$ mv AutoScaling-1.0.61.3 AutoScaling | |
$ mv CloudWatch-1.0.13.4 CloudWatch |