Skip to content

Instantly share code, notes, and snippets.

@tsabat
Created June 29, 2013 15:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsabat/5891536 to your computer and use it in GitHub Desktop.
Save tsabat/5891536 to your computer and use it in GitHub Desktop.
#!/bin/bash
AUTOSCALING_GROUP_NAME="app-autoscaling-group"
AVAILABILITY_ZONES="us-west-2c"
LAUNCH_CONFIG_NAME="app-launch-config"
MAX_SIZE=10
MIN_SIZE=2
DESIRED_CAPACITY=2
GRACE_PERIOD="300"
HEALTH_CHECK_TYPE="ELB"
LOAD_BALANCERS="app-lb-west"
as-create-auto-scaling-group $AUTOSCALING_GROUP_NAME \
--availability-zones $AVAILABILITY_ZONES \
--launch-configuration $LAUNCH_CONFIG_NAME \
--max-size $MAX_SIZE \
--min-size $MIN_SIZE \
--desired-capacity $DESIRED_CAPACITY \
--grace-period $GRACE_PERIOD \
--health-check-type $HEALTH_CHECK_TYPE \
--load-balancers $LOAD_BALANCERS
as-describe-auto-scaling-groups $AUTOSCALING_GROUP_NAME --headers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment