AWS Console: https://console.aws.amazon.com/ec2
AWS Console: https://console.aws.amazon.com/ec2
sshfs -o IdentityFile=~/AWS/autokey.pem ubuntu@176.34.229.204:/home/ubuntu ~/aws_auto/
ssh -i autokey.pem ubuntu@176.34.229.204
How to install oracle java 7 in ubuntu 13.04/12.10/12.04
/home/ubuntu/startplay.sh
cd /home/ubuntu/Play20/samples/scala/framework_benchmarks/
/home/ubuntu/Play20/play run
/etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
/home/ubuntu/startplay.sh
exit 0
ubuntu$sudo reboot
access webpage using elastic IP.
Instances -> select instance -> Action -> Create Image (EBS AMI)
http://docs.aws.amazon.com/AutoScaling/latest/GettingStartedGuide/Welcome.html
http://www.robertsindall.co.uk/blog/how-to-use-amazons-auto-scaling-groups/
$ export AWS_CREDENTIAL_FILE=/home/jiansen/AWS/aws-credentials.txt
$ as-create-launch-config AutoScaleLC --image-id ami-a9f8e6dd --region eu-west-1 --instance-type t1.micro --group awseb-e-ictxp7cjjz-stack-AWSEBSecurityGroup-YAXYRWU3MQO8 --key autokey OK-Created launch config
(Ubuntu 13.04 t1.mociro eu-west-1)
ami-a9f8e6dd is the AMI ID of the created EBS AMI.
$ as-describe-launch-configs --headers --region eu-west-1 --max-records 50
LAUNCH-CONFIG NAME IMAGE-ID TYPE
LAUNCH-CONFIG AutoScaleAkkaPlay ami-0f9d837b t1.micro
LAUNCH-CONFIG AutoScaleAkkaSocko ami-db9688af t1.micro
LAUNCH-CONFIG AutoScaleLC ami-a9f8e6dd t1.micro
LAUNCH-CONFIG AutoScaleTAkkaPlay ami-699d831d t1.micro
LAUNCH-CONFIG AutoScaleTAkkaSocko ami-cb9688bf t1.micro
$ as-create-auto-scaling-group auto-scaling-group --region eu-west-1 --availability-zones eu-west-1a --launch-configuration AutoScaleX 0 --max-size 0 --min-size 0
OK-Created AutoScalingGroup
$ as-describe-auto-scaling-groups --headers --region eu-west-1
AUTO-SCALING-GROUP GROUP-NAME LAUNCH-CONFIG AVAILABILITY-ZONES MIN-SIZE MAX-SIZE DESIRED-CAPACITY
AUTO-SCALING-GROUP auto-scaling-akka-play AutoScaleAkkaPlay eu-west-1a 0 0 0
AUTO-SCALING-GROUP auto-scaling-akka-socko AutoScaleAkkaSocko eu-west-1a 0 0 0
AUTO-SCALING-GROUP auto-scaling-group AutoScaleLC eu-west-1a,eu-west-1b,eu-west-1c 0 0 0
AUTO-SCALING-GROUP auto-scaling-takka-play AutoScaleTAkkaPlay eu-west-1a 0 0 0
AUTO-SCALING-GROUP auto-scaling-takka-socko AutoScaleTAkkaSocko eu-west-1a 0 0 0
https://console.aws.amazon.com/ec2
$as-update-auto-scaling-group auto-scaling-X-X --desired-capacity 0 --max-size 0 --min-size 0 --region eu-west-1
$ as-update-auto-scaling-group MyGroup --launch-configuration MyLC --availability-zones us-west-2a --min-size 1 --max-size 12 OK-Updated AutoScalingGroup
check for
- DNS Name: e.g. MyLoadBalancer-360063211.eu-west-1.elb.amazonaws.com
- Port Configuration
http://www.cardinalpath.com/autoscaling-your-website-with-amazon-web-services-part-1/
http://www.cardinalpath.com/autoscaling-your-website-with-amazon-web-services-part-2/