Create a gist now

Instantly share code, notes, and snippets.

#!/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