Created
July 14, 2011 16:20
-
-
Save numan/1082784 to your computer and use it in GitHub Desktop.
create an auto scaling group
This file contains 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
#For a complete list of options see http://boto.cloudhackers.com/ref/ec2.html#boto.ec2.autoscale.group.AutoScalingGroup | |
ag = AutoScalingGroup(group_name='webserver-asg', load_balancers=['my-lb'], | |
availability_zones=['us-east-1a','us-east-1b', 'us-east-1c'], | |
launch_config='my-launch-config-name', min_size=2, max_size=20) | |
conn_as.create_auto_scaling_group(ag) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment